Making a persistent HTTP connection

David Rasmussen david.rasmussen at gmx.net
Mon Nov 14 20:30:12 CET 2005


I use urllib2 to do some simple HTTP communication with a web server. In 
one "session", I do maybe 10-15 requests. It seems that urllib2 opens op 
a connection every time I do a request. Can I somehow make it use _one_ 
persistent connection where I can do multiple GET->"receive data" passes 
before the connection is closed?

/David



More information about the Python-list mailing list