Retrieving http headers from HTTPConnection object

2008-09-01 Thread jorma kala
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: ...

Re: Retrieving http headers from HTTPConnection object

2008-09-01 Thread Marco Bizzarri
On Mon, Sep 1, 2008 at 1:06 PM, jorma kala [EMAIL PROTECTED] wrote: 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