urllib.urlopen and proxies
Siggy Brentrup
bsb at winnegan.de
Mon Mar 5 10:07:42 EST 2001
"Chris Gonnerman" <chris.gonnerman at usa.net> writes:
> It *appears* (from reading the source) that username and password
> information for
> the proxy server must be passed as part of the URL:
>
> http://username:password@my.host.com/index.html
>
I suggest using urllib2, changing the proxy setup described in the
module's docstring to
proxy_support = urllib2.ProxyHandler({"http" :
"http://user:pw@proxy:port"})
Untested too, since my proxy doesn't require authorization.
HTWorks
Siggy
More information about the Python-list
mailing list