linux-cli

Basic Auth

  • entweder direkt übergeben (schlecht, weil dann in der history und im ps log) oder mit netrc
  • netrc-file sieht so aus:
    • machine <example.com> login <username> password <password>
curl -u user:password url
 
curl --netrc-file password-file url