From b53975327f624c3cbc0e0db86d52a4ad0288aea8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 15 Feb 2013 16:32:50 +0000 Subject: [PATCH] use explicit scheme for proxies in the docs Issue #1192 tried to force user to provide a scheme for proxy urls. As this would break backwards compability change the docs instead. --- 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 1dcde17..33bb6f6 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -262,8 +262,8 @@ If you need to use a proxy, you can configure individual requests with the import requests proxies = { - "http": "10.10.1.10:3128", - "https": "10.10.1.10:1080", + "http": "http://10.10.1.10:3128", + "https": "http://10.10.1.10:1080", } requests.get("http://example.org", proxies=proxies) @@ -272,8 +272,8 @@ You can also configure proxies by environment variables ``HTTP_PROXY`` and ``HTT :: - $ export HTTP_PROXY="10.10.1.10:3128" - $ export HTTPS_PROXY="10.10.1.10:1080" + $ export HTTP_PROXY="http://10.10.1.10:3128" + $ export HTTPS_PROXY="http://10.10.1.10:1080" $ python >>> import requests >>> requests.get("http://example.org") -- 2.7.4