From 66c4a398d7b7ef90aaf219f65cf6f9aa4e6a2c08 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 15 Jun 2024 11:49:40 +0200 Subject: [PATCH] CURLOPT_NETRC.md: clarify what it does on Windows Closes #13956 --- docs/libcurl/opts/CURLOPT_NETRC.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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).