Re: Making a persistent HTTP connection

2005-11-18 Thread Piet van Oostrum
> "Alan Kennedy" <[EMAIL PROTECTED]> (AK) wrote: >AK> http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1 >AK> Some HTTP 1.0 clients supported persistent connections through the use >AK> of the non-standard "keep-alive" header. >>> And even if it works - what is the problem with con

Re: Making a persistent HTTP connection

2005-11-14 Thread Alan Kennedy
[David Rasmussen] >> 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->

Re: Making a persistent HTTP connection

2005-11-14 Thread Alan Kennedy
[David Rasmussen] >> 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 GE

Re: Making a persistent HTTP connection

2005-11-14 Thread Benjamin Niemann
Diez B. Roggisch wrote: > David Rasmussen wrote: >> 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 connecti

Re: Making a persistent HTTP connection

2005-11-14 Thread Diez B. Roggisch
David Rasmussen wrote: > 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 G

Making a persistent HTTP connection

2005-11-14 Thread David Rasmussen
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 befo