From: Daniel Stenberg Date: Sat, 15 Jun 2024 09:49:40 +0000 (+0200) Subject: CURLOPT_NETRC.md: clarify what it does on Windows X-Git-Tag: curl-8_9_0~228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66c4a398d7b7ef90aaf219f65cf6f9aa4e6a2c08;p=thirdparty%2Fcurl.git CURLOPT_NETRC.md: clarify what it does on Windows Closes #13956 --- diff --git a/docs/libcurl/opts/CURLOPT_NETRC.md b/docs/libcurl/opts/CURLOPT_NETRC.md index 6b5e1d2e8d..0ac36346ec 100644 --- a/docs/libcurl/opts/CURLOPT_NETRC.md +++ b/docs/libcurl/opts/CURLOPT_NETRC.md @@ -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).