Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Mumble mumble... I described bad my question I think, yes I read that, but maybe is not a correct way of working. The http request I did retrieve (every time) an empty response, when I print the read() result call the result is the same of the sample you are talking about. http://docs.python.

Re: HTTP ResponseNotReady

2011-10-04 Thread MRAB
On 04/10/2011 21:29, pedr0 wrote: Hi solved this problem, I have to add: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_connection.request("POST", "/",params,headers=headers_) r1 = http_connection.getresponse() r1.read() // THIS ONE #

Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi solved this problem, I have to add: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_connection.request("POST", "/",params,headers=headers_) r1 = http_connection.getresponse() r1.read() // THIS ONE #second request http_connection.reque

HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi at all, I don't understand why, in this piece of code, i catch the raise ResponseNotReady(self.__state) http.client.ResponseNotReady: Request-sent EVERY time I run this piece of code: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_