You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to #1332, the intent of reqwest's NoProxy was to mirror curl's behavior as much as possible. However, its handling of the * wildcard differs from curl in that:
it does not apply to IP addresses (i.e. a request to http://127.0.0.1:8080 will be proxied despite the * noproxy)
it is interpreted as the wildcard even if there are other elements in the noproxy list (i.e. reqwest will not proxy a request to http://example.test if noproxy is otherhost.example,*, whereas curl would use the configured proxy)
Comma-separated list of hosts for which not to use a proxy, if one is specified. The only wildcard is a single "*" character, which matches
all hosts, and effectively disables the proxy. Each name in this list is matched as either a domain which contains the hostname, or the
hostname itself. For example, "local.com" would match "local.com", "local.com:80", and "www.local.com", but not "www.notlocal.com".
This option overrides the environment variables that disable the proxy ("no_proxy" and "NO_PROXY") (added in 7.53.0). If there is an
environment variable disabling a proxy, you can set the no proxy list to "" to override it.
IP addresses specified to this option can be provided using CIDR notation (added in 7.86.0): an appended slash and number specifies the
number of network bits out of the address to use in the comparison. For example "192.168.0.0/16" would match all addresses starting with
"192.168".
If --noproxy is provided several times, the last set value is used.
list of host names that should not go through any proxy. If set to an asterisk '*' only, it matches all hosts. Each name in this list is
matched as either a domain name which contains the hostname, or the hostname itself.
This environment variable disables use of the proxy even when specified with the -x, --proxy option. That is
The list of host names can also be include numerical IP addresses, and IPv6 versions should then be given without enclosing brackets.
IP addresses can be specified using CIDR notation: an appended slash and 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".
The text was updated successfully, but these errors were encountered:
According to #1332, the intent of reqwest's
NoProxy
was to mirror curl's behavior as much as possible. However, its handling of the*
wildcard differs from curl in that:http://127.0.0.1:8080
will be proxied despite the*
noproxy)http://example.test
if noproxy isotherhost.example,*
, whereas curl would use the configured proxy)curl examples (where http://127.0.0.1:8081/test serves
proxy
, and http://127.0.0.1:8082/test servicesnoproxy
):curl --proxy http://localhost:8081 --noproxy '*' http://127.0.0.1:8082/test
noproxy
*
applies to the IP addresscurl --proxy http://localhost:8081 --noproxy 'example.test,*' http://127.0.0.1:8082/test
proxy
*
does not apply hereAdditionally some quotes from curl's manpage:
The text was updated successfully, but these errors were encountered: