]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_NETRC.md: clarify what it does on Windows
authorDaniel Stenberg <daniel@haxx.se>
Sat, 15 Jun 2024 09:49:40 +0000 (11:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 15 Jun 2024 15:03:05 +0000 (17:03 +0200)
Closes #13956

docs/libcurl/opts/CURLOPT_NETRC.md

index 6b5e1d2e8da7da0a78028085fec1cb09db5d35d3..0ac36346ecfa29e4a23b2890505cc23fd741572b 100644 (file)
@@ -30,8 +30,10 @@ This parameter controls the preference *level* of libcurl between using
 usernames and passwords from your *~/.netrc* file, relative to usernames and
 passwords in the URL supplied with CURLOPT_URL(3).
 
-On Windows, libcurl uses the file as *%HOME%/_netrc*. If *%HOME%* is
-not set on Windows, libcurl falls back to *%USERPROFILE%*.
+On Windows, libcurl primarily checks for *.netrc* in *%HOME%*. If *%HOME%* is
+not set on Windows, libcurl falls back to *%USERPROFILE%*. If the file does
+not exist, it falls back to check if there is instead a file named *_netrc* -
+using an underscore instead of period.
 
 You can also tell libcurl a different filename to use with
 CURLOPT_NETRC_FILE(3).