This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry
Date 2009-10-16.21:06:23
SpamBayes Score 0.003610518
Marked as misclassified No
Message-id <1255727184.59.0.607428302179.issue7152@psf.upfronthosting.co.za>
In-reply-to
Content
This may end up being just a documentation issue.  If the environment
has http_proxy set, you do get a ProxyHandler automatically.

>>> import os
>>> os.environ['http_proxy'] = 'localhost'
>>> from urllib2 import build_opener
>>> build_opener().handlers
[<urllib2.ProxyHandler instance at 0x7fb664ec6e18>,
<urllib2.UnknownHandler instance at 0x7fb664eca050>,
<urllib2.HTTPHandler instance at 0x7fb664eca710>,
<urllib2.HTTPDefaultErrorHandler instance at 0x7fb664ecaa70>,
<urllib2.HTTPRedirectHandler instance at 0x7fb664ecad88>,
<urllib2.FTPHandler instance at 0x7fb664ecae60>, <urllib2.FileHandler
instance at 0x7fb664ecaf38>, <urllib2.HTTPSHandler instance at
0x7fb664ece3b0>, <urllib2.HTTPErrorProcessor instance at 0x7fb664ece128>]
History
Date User Action Args
2009-10-16 21:06:24barrysetrecipients: + barry
2009-10-16 21:06:24barrysetmessageid: <1255727184.59.0.607428302179.issue7152@psf.upfronthosting.co.za>
2009-10-16 21:06:23barrylinkissue7152 messages
2009-10-16 21:06:23barrycreate