Respect `NO_PROXY` environment variable.
zicklag opened this issue · comments
With the try_proxy_from_env(true)
option, ureq
correctly reads the HTTP[S]_PROXY
environment variables, but it doesn't honor the NO_PROXY
environment variables. Also, it's not possible to efficiently implement from outside of ureq
, because you would have to create a new Agent
for each request to a different domain, instead of being able to share the same agent state among all domains.
but it doesn't honor the NO_PROXY environment variables.
I know very little about proxies. PR welcome.
Also, it's not possible to efficiently implement from outside of
ureq
, because you would have to create a newAgent
for each request to a different domain, instead of being able to share the same agent state among all domains.
Agent is reusable for multiple requests.
Also redirects that had different proxy needs wouldn't work.
Not sure I follow. Do you mean there should be different proxy settings per request host?