Controlling source IP address within urllib2

John J. Lee jjl at pobox.com
Tue Jun 7 19:02:57 EDT 2005


"Dan" <tojuso at hotmail.com> writes:

> John,
> Thanks for your input.  I can kind of see the light in this, but I'm
> having difficulty knowing where the "do_open" method comes from.  Also,

AbstractHTTPHandler


> I'll need to follow redirects, so I assume then I would add a
> HTTPRedirectHandler instance to the urllib2.build_opener. (?)  Thanks

No.  It does that by default.


John



More information about the Python-list mailing list