Skip to content
Myr

Merge pull request #5978 from sha016/all-proxy-docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by GitHub · parents 24dfbfd, 2c20474 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:docs/user/advanced.rst+3 added-2 removed
603 unmodified lines
604 session.get('http://example.org')605606When the proxies configuration is not overridden in python as shown above,607by default Requests relies on the proxy configuration defined by standard608environment variables ``http_proxy``, ``https_proxy``, ``no_proxy`` and609``curl_ca_bundle``. Uppercase variants of these variables are also supported.608environment variables ``http_proxy``, ``https_proxy``, ``no_proxy``, 609``curl_ca_bundle``, and ``all_proxy``. Uppercase variants of these variables are also supported.610You can therefore set them to configure Requests (only set the ones relevant611to your needs)::612613 $ export HTTP_PROXY="http://10.10.1.10:3128"614 $ export HTTPS_PROXY="http://10.10.1.10:1080"615 $ export ALL_PROXY="socks5://10.10.1.10:3434"616617 $ python618 >>> import requests619 >>> requests.get('http://example.org')
472 unmodified lines