1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

docs: clarify the use of environment variables for proxy

Closes #1921
This commit is contained in:
Michael Kaufmann 2017-09-24 19:58:37 +02:00
parent eac324f284
commit 46d63bbbe8
2 changed files with 7 additions and 1 deletions

View File

@ -41,8 +41,13 @@ If the name in the noproxy list has a leading period, it is a domain match
against the provided host name. This way ".example.com" will switch off proxy against the provided host name. This way ".example.com" will switch off proxy
use for both "www.example.com" as well as for "foo.example.com". use for both "www.example.com" as well as for "foo.example.com".
Setting the noproxy string to "" (an empty string) will explicitly enable the
proxy for all host names, even if there is an environment variable set for it.
The application does not have to keep the string around after setting this The application does not have to keep the string around after setting this
option. option.
.SH "Environment variables"
See \fICURLOPT_PROXY(3)\fP
.SH DEFAULT .SH DEFAULT
NULL NULL
.SH PROTOCOLS .SH PROTOCOLS

View File

@ -84,7 +84,8 @@ names to not use a proxy for (even if one of the previous mention variables
are set). That is the exact equivalent of setting the \fICURLOPT_NOPROXY(3)\fP are set). That is the exact equivalent of setting the \fICURLOPT_NOPROXY(3)\fP
option. option.
The \fICURLOPT_PROXY(3)\fP option overrides environment variables. The \fICURLOPT_PROXY(3)\fP and \fICURLOPT_NOPROXY(3)\fP options override
environment variables.
.SH DEFAULT .SH DEFAULT
Default is NULL, meaning no proxy is used. Default is NULL, meaning no proxy is used.