getting all HTTP headers from urllib2 Request?

cgoldberg cgoldberg at gmail.com
Tue Mar 3 19:12:18 CET 2009


> > Looking at the httplib sources, the only headers it may add are Host,  
> > Accept-Encoding: identity, and Content-Length.


now that I think of it, if it is only 3 headers, I can just override
them explicitly from urllib2 and then log that.

thanks a lot for looking into the httplib source!

-Corey



More information about the Python-list mailing list