]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: mention that the netrc file works without port numbers
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2025 21:34:52 +0000 (23:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2025 21:46:14 +0000 (23:46 +0200)
Closes #17698

docs/cmdline-opts/netrc.md
docs/libcurl/opts/CURLOPT_NETRC.md

index 3e9fcb19630abce1deee1f56748fe42287b33474..261dc196d6e84c7632b8a466287ac81c5f10c3aa 100644 (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.
index 019d6ffaa1a46824dbac485365fc75584a98d5bb..fa41236873549219c1f76fb3d3e4cc527c493598 100644 (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.