mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:13:31 +03:00
netrc: use the NETRC environment variable (first) if set
Add test 755 to verify. Proposed-by: Berthin Torres Callañaupa URL: https://curl.se/mail/lib-2025-06/0015.html Closes #17712
This commit is contained in:
parent
cb9b1a4c4e
commit
cb2a48bf5b
6 changed files with 111 additions and 39 deletions
|
|
@ -66,6 +66,11 @@ When the netrc feature is used (CURLOPT_NETRC(3)), this variable is
|
|||
checked as the secondary way to find the "current" home directory (on Windows
|
||||
only) in which the .netrc file is likely to exist.
|
||||
|
||||
## `NETRC`
|
||||
|
||||
The filename used as netrc file when CURLOPT_NETRC(3) is used without
|
||||
CURLOPT_NETRC_FILE(3). (Added in 8.16.0)
|
||||
|
||||
## `NO_PROXY`
|
||||
|
||||
This has the same functionality as the CURLOPT_NOPROXY(3) option: it
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NETRC, long level);
|
|||
|
||||
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).
|
||||
passwords in the URL supplied with CURLOPT_URL(3). If the `NETRC` environment
|
||||
variable is set, that filename is used as the netrc file. (Added in 8.16.0)
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue