HTTP ResponseNotReady

pedr0 pulsarpietro at gmail.com
Tue Oct 4 16:08:41 EDT 2011


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_connection.request("POST", "/",params,headers=headers_)
r1 = http_connection.getresponse()
#second request
http_connection.request("GET", "/","",headers=headers_)
r2 = http_connection.getresponse()


Someone can help me ?



More information about the Python-list mailing list