summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-10-18 01:42:33 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-10-18 01:42:33 (GMT)
commita51a1b3dbf3b76d604da88945486983baf9dff22 (patch)
tree7b7550877159563b09360c442056ac3e4964a6c6
parent9ab0f5a4254804cc431c552f7244f49260b44e6a (diff)
downloadcpython-a51a1b3dbf3b76d604da88945486983baf9dff22.zip
cpython-a51a1b3dbf3b76d604da88945486983baf9dff22.tar.gz
cpython-a51a1b3dbf3b76d604da88945486983baf9dff22.tar.bz2
Merged revisions 75474 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75474 | senthil.kumaran | 2009-10-18 06:54:41 +0530 (Sun, 18 Oct 2009) | 2 lines Fix for Issue7155 - urllib do not document default use of system proxy configuration ........
-rw-r--r--Doc/library/urllib.request.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index b05641c..9d60662 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -49,6 +49,9 @@ The :mod:`urllib.request` module defines the following functions:
the default installed global :class:`OpenerDirector` uses
:class:`UnknownHandler` to ensure this never happens).
+ In addition, default installed :class:`ProxyHandler` makes sure the requests
+ are handled through the proxy when they are set.
+
The legacy ``urllib.urlopen`` function from Python 2.6 and earlier has been
discontinued; :func:`urlopen` corresponds to the old ``urllib2.urlopen``.
Proxy handling, which was done by passing a dictionary parameter to
@@ -350,6 +353,11 @@ The following classes are provided:
Cause requests to go through a proxy. If *proxies* is given, it must be a
dictionary mapping protocol names to URLs of proxies. The default is to read the
list of proxies from the environment variables :envvar:`<protocol>_proxy`.
+ If no proxy environment variables are set, in a Windows environment, proxy
+ settings are obtained from the registry's Internet Settings section and in a
+ Mac OS X environment, proxy information is retrieved from the OS X System
+ Configuration Framework.
+
To disable autodetected proxy pass an empty dictionary.