getting all HTTP headers from urllib2 Request?

cgoldberg cgoldberg at
Tue Mar 3 16:44:12 CET 2009

> I didn't try it, but the Request Class from urllib2 has a method
> called, header_items(). That could be what your looking for.

yes, that method only shows you all the headers added by urllib2.

there are other headers that are produced by httplib under the covers
that are added to the outgoing http request.  That is what I am trying
to get at.


More information about the Python-list mailing list