Add support for the NO_PROXY environment variable
See original GitHub issueThe NO_PROXY
environment variable is described here:
- http://www.gnu.org/software/wget/manual/html_node/Proxies.html
- https://github.com/psf/requests/blob/840540b6b1f07ef87faab73392c03fbef0dcc9fe/requests/utils.py#L395
In order to accomplish this task we’d need:
- Implementing NO_PROXY, a list of hosts that will bypass the proxy if found within the list.
- Only enabled if
trust_env=True
- Documentation updates for the new environment variable.
- Test cases for all code branches.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (9 by maintainers)
Top Results From Across the Web
We need to talk: Can we standardize NO_PROXY? - GitLab
Today, most Web clients support connection to proxy servers via environment variables: http_proxy / HTTP_PROXY; https_proxy / HTTPS_PROXY ...
Read more >Add support for no_proxy environment variable #932 - GitHub
I'm using dulwich in a special environment where the proxy settings are out of my control. One of the features there supports "whitelisting" ......
Read more >Are HTTP_PROXY, HTTPS_PROXY and NO_PROXY ...
I just want to know: Are these environment variables standard? Is there a written specification (may be by the OS manufacturers?) that recommends...
Read more >Working with HTTP Proxies | OpenShift Container Platform 3.11
The NO_PROXY environment variable lists all of the OpenShift Container Platform components and all IP addresses that are managed by OpenShift Container Platform ......
Read more >Set a network range in the no_proxy environment variable
You're looking at it the wrong way. The no_proxy environment variable lists the domain suffixes, not the prefixes. From the documentation:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
@sethmlarson Hi Seth!
I would love to work on this if I could!
I’m mostly familiar with this library as a user but I think the context provided should be clear enough to adapt this for httpx.
You can use
trust_env=False
to disable system proxies.https://www.python-httpx.org/environment_variables/