netrc.d 952 B

12345678910111213141516171819202122232425
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: netrc
  4. Short: n
  5. Help: Must read .netrc for user name and password
  6. Category: curl
  7. Example: --netrc $URL
  8. Added: 4.6
  9. See-also: netrc-file config user
  10. ---
  11. Makes curl scan the *.netrc* (*_netrc* on Windows) file in the user's home
  12. directory for login name and password. This is typically used for FTP on
  13. Unix. If used with HTTP, curl will enable user authentication. See
  14. *netrc(5)* and *ftp(1)* for details on the file format. Curl will not
  15. complain if that file does not have the right permissions (it should be
  16. neither world- nor group-readable). The environment variable "HOME" is used
  17. to find the home directory.
  18. A quick and simple example of how to setup a *.netrc* to allow curl to FTP to
  19. the machine host.domain.com with user name 'myself' and password 'secret'
  20. could look similar to:
  21. machine host.domain.com
  22. login myself
  23. password secret