HTTP ResponseNotReady
pedr0
pulsarpietro at gmail.com
Tue Oct 4 16:29:30 EDT 2011
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.request("GET", "/","",headers=headers_)
r2 = http_connection.getresponse()
Someone know if this is a bug ?
Thanks
More information about the Python-list
mailing list