docs: mention that the netrc file works without port numbers

Closes #17698
This commit is contained in:
Daniel Stenberg 2025-06-21 23:34:52 +02:00
parent 64fe36aaa0
commit bbadbd7795
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 0 deletions

View file

@ -25,6 +25,9 @@ file format. curl does not complain if that file does not have the right
permissions (it should be neither world- nor group-readable). The environment
variable "HOME" is used to find the home directory.
The netrc file provides credentials for a hostname independent of which
protocol and port number that are used.
On Windows two filenames in the home directory are checked: *.netrc* and
*_netrc*, preferring the former. Older versions on Windows checked for *_netrc*
only.

View file

@ -46,6 +46,9 @@ the options controlled by this parameter.
Only machine name, username and password are taken into account (init macros
and similar things are not supported).
The netrc file provides credentials for a hostname independent of which
protocol and port number that are used.
libcurl does not verify that the file has the correct properties set (as the
standard Unix ftp client does). It should only be readable by user.