Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a51a1b3

Browse files
committed
Merged revisions 75474 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent 9ab0f5a commit a51a1b3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/library/urllib.request.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ The :mod:`urllib.request` module defines the following functions:
4949
the default installed global :class:`OpenerDirector` uses
5050
:class:`UnknownHandler` to ensure this never happens).
5151

52+
In addition, default installed :class:`ProxyHandler` makes sure the requests
53+
are handled through the proxy when they are set.
54+
5255
The legacy ``urllib.urlopen`` function from Python 2.6 and earlier has been
5356
discontinued; :func:`urlopen` corresponds to the old ``urllib2.urlopen``.
5457
Proxy handling, which was done by passing a dictionary parameter to
@@ -350,6 +353,11 @@ The following classes are provided:
350353
Cause requests to go through a proxy. If *proxies* is given, it must be a
351354
dictionary mapping protocol names to URLs of proxies. The default is to read the
352355
list of proxies from the environment variables :envvar:`<protocol>_proxy`.
356+
If no proxy environment variables are set, in a Windows environment, proxy
357+
settings are obtained from the registry's Internet Settings section and in a
358+
Mac OS X environment, proxy information is retrieved from the OS X System
359+
Configuration Framework.
360+
353361
To disable autodetected proxy pass an empty dictionary.
354362

355363

0 commit comments

Comments
 (0)