Retrieving http headers from HTTPConnection object
jorma kala
jjkk73 at gmail.com
Mon Sep 1 07:06:20 EDT 2008
Hi,
when using httplib for http requests, like for example:
conn = httplib.HTTPConnection("www.python.org")
conn.request("GET", "/index.html")
Is it possible to retrieve the complete http request in string form :
GET /index.html HTTP/1.1
Host: www.python.org
User-Agent: ...
Accept: ...
Accept-Language:
Accept-Encoding:
Accept-Charset:
Keep-Alive:
Connection:
I mean does the HTTPConnection object have a property that stores this ?
or is it retrievable by some other form?
Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080901/f4dcb3bc/attachment.html>
More information about the Python-list
mailing list