It's a BUG? urllib2 & proxy

limodou chatme at 263.net
Mon Oct 15 04:34:44 EDT 2001


chatme at 263.net (limodou) wrote in message news:<ce82f84e.0110141924.76574305 at posting.google.com>...
And I found another thing that in code (urllib2.py) 807:

original :
        h.putheader('Host', host)

should be changed with :
        #h.putheader('Host', host)
        rhost=urlparse.urlparse(req.get_selector())[1]
        h.putheader('Host', rhost)

lucky!



More information about the Python-list mailing list