getting all HTTP headers from urllib2 Request?

cgoldberg cgoldberg at
Tue Mar 3 17:07:20 CET 2009

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

those are exactly the headers I want to capture.
do you know how to get a hold of them from a request using urllib2.


More information about the Python-list mailing list