Skip to content

Commit

Permalink
Merge pull request #5978 from sha016/all-proxy-docs
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
  • Loading branch information
nateprewitt and sethmlarson committed Feb 2, 2022
2 parents 24dfbfd + 2c20474 commit 7ae3887
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/user/advanced.rst
Expand Up @@ -605,13 +605,14 @@ Alternatively you can configure it once for an entire

When the proxies configuration is not overridden in python as shown above,
by default Requests relies on the proxy configuration defined by standard
environment variables ``http_proxy``, ``https_proxy``, ``no_proxy`` and
``curl_ca_bundle``. Uppercase variants of these variables are also supported.
environment variables ``http_proxy``, ``https_proxy``, ``no_proxy``,
``curl_ca_bundle``, and ``all_proxy``. Uppercase variants of these variables are also supported.
You can therefore set them to configure Requests (only set the ones relevant
to your needs)::

$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ export ALL_PROXY="socks5://10.10.1.10:3434"

$ python
>>> import requests
Expand Down

0 comments on commit 7ae3887

Please sign in to comment.