Skip to content
Myr

mention all_proxy env variable in Proxies section

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

authored by sha016 · committed by sha016 · parent 590350f · Browse files · 1 file+4 added−4 removed
This commit

State

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

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/user/advanced.rst+4 added-4 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.610You can therefore set them to configure Requests (only set the ones relevant611to your needs)::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 (you only need to export one)::611612 $ export HTTP_PROXY="http://10.10.1.10:3128"613 $ export HTTPS_PROXY="http://10.10.1.10:1080"614 $ export ALL_PROXY="socks5://10.10.1.10:3434"615616 $ python617 >>> import requests618 >>> requests.get('http://example.org')
472 unmodified lines