HTTP Persistent connection
pedr0
pulsarpietro at gmail.com
Mon Oct 3 16:24:21 EDT 2011
Hi at all,
I have some problem with the httplib module, I would like have an HTTP persistent connection but when run this code :
#first request
http_connection = httplib.HTTPConnection(host)
http_connection.request(method,url,headers=headers)
response = http_connection.getresponse()
#second request
It works using two different socket, I can see that using wireshark, each request use two different source port.
I am using Python 2.6.1, some can suggest me how solve problem ?
Thanks in advance.
\pedr0
More information about the Python-list
mailing list