_ENVIRONMENT.md: document NETRC

Follow-up to 378713deb2

Closes #18497
This commit is contained in:
Daniel Stenberg 2025-09-08 17:10:18 +02:00
parent 32909591d2
commit f8ff233cdf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -48,7 +48,7 @@ number specifies the number of "network bits" out of the address to use in the
comparison (added in 7.86.0). For example "192.168.0.0/16" would match all
addresses starting with "192.168".
## `APPDATA <dir>`
## `APPDATA <directory>`
On Windows, this variable is used when trying to find the home directory. If
the primary home variables are all unset.
@ -61,7 +61,7 @@ using other ways.
If set, it is used as the --cacert value. This environment variable is ignored
if Schannel is used as the TLS backend.
## `CURL_HOME <dir>`
## `CURL_HOME <directory>`
If set, is the first variable curl checks when trying to find its home
directory. If not set, it continues to check *XDG_CONFIG_HOME*
@ -80,6 +80,11 @@ If set, this is used to find the home directory when that is needed. Like when
looking for the default .curlrc. *CURL_HOME* and *XDG_CONFIG_HOME*
have preference.
## `NETRC <path>`
If set, this is used to find the `.netrc` file. It overrides all other netrc
file location mechanisms and should be set to the full file path.
(Added in curl 8.16.0)
## `QLOGDIR <directory>`
If curl was built with HTTP/3 support, setting this environment variable to a
local directory makes curl produce **qlogs** in that directory, using file