2 Apr 2001 16:14
[ python-Bugs-413135 ] urllib2 fails with proxy requiring auth
<noreply <at> sourceforge.net>
2001-04-02 14:14:33 GMT
2001-04-02 14:14:33 GMT
Bugs item #413135, was updated on 2001-04-02 07:14 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=413135&group_id=5470 Category: Python Library Group: None Status: Open Priority: 5 Submitted By: Paul Moore (pmoore) Assigned to: Nobody/Anonymous (nobody) Summary: urllib2 fails with proxy requiring auth Initial Comment: The following program: import urllib2 proxy_info = { 'user' : 'my_name', 'pass' : 'my_pass', 'host' : "my-proxy", 'port' : 80 } # build a new opener that uses a proxy requiring # authorization proxy_support = urllib2.ProxyHandler( {"http" : "http://%(user)s:%(pass)s <at> %(host)s:%(port)d" % proxy_info}) opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)(Continue reading)
RSS Feed