P
pedr0
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
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