netrc.d 817 B

12345678910111213141516171819
  1. Long: netrc
  2. Short: n
  3. Help: Must read .netrc for user name and password
  4. Category: curl
  5. Example: --netrc $URL
  6. ---
  7. Makes curl scan the *.netrc* (*_netrc* on Windows) file in the user's home
  8. directory for login name and password. This is typically used for FTP on
  9. Unix. If used with HTTP, curl will enable user authentication. See
  10. *netrc(5)* and *ftp(1)* for details on the file format. Curl will not
  11. complain if that file doesn't have the right permissions (it should be
  12. neither world- nor group-readable). The environment variable "HOME" is used
  13. to find the home directory.
  14. A quick and very simple example of how to setup a *.netrc* to allow curl
  15. to FTP to the machine host.domain.com with user name \&'myself' and password
  16. \&'secret' should look similar to:
  17. .B "machine host.domain.com login myself password secret"