From e2fa8d3654b48a3ef3d268624d365bb2dfbf0927 Mon Sep 17 00:00:00 2001 From: sha016 Date: Sat, 13 Nov 2021 20:58:30 -0600 Subject: [PATCH 1/2] mention all_proxy env variable in Proxies section --- docs/user/advanced.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 24e0752875..215a2edebf 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -605,13 +605,13 @@ 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. -You can therefore set them to configure Requests (only set the ones relevant -to your needs):: +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 (you only need to export one):: $ 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 From 2c20474bfeaec944ff225f80be4e8a05035d75c2 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Wed, 2 Feb 2022 11:56:27 -0600 Subject: [PATCH 2/2] Update advanced.rst --- docs/user/advanced.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 215a2edebf..d6a053498d 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -607,7 +607,8 @@ 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``, ``curl_ca_bundle``, and ``all_proxy``. Uppercase variants of these variables are also supported. -You can therefore set them to configure Requests (you only need to export one):: +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"