Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ to your needs)::

$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ export NO_PROXY="www.example.com,10.20.1.128,10.20.2.0/24"
$ export ALL_PROXY="socks5://10.10.1.10:3434"

$ python
Expand Down Expand Up @@ -649,6 +650,20 @@ any request to the given scheme and exact hostname.

Note that proxy URLs must include the scheme.

To exclude a specific scheme and host from a proxy configuration,
set it to an empty string so a direct connection is used:

::

proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
'http://10.20.1.128': '',
}

Note that adding ``no_proxy`` to the ``proxies`` dictionary for this purpose is not
supported.

Finally, note that using a proxy for https connections typically requires your
local machine to trust the proxy's root certificate. By default the list of
certificates trusted by Requests can be found with::
Expand Down