wget  

Re: keep alive connections

Hrvoje Niksic
Sat, 08 Nov 2003 08:07:05 -0800

Daniel Stenberg <[EMAIL PROTECTED]> writes:

> On Fri, 7 Nov 2003, Hrvoje Niksic wrote:
>
>> Persistent connections were available prior to HTTP/1.1, although they were
>> not universally implemented.  Wget uses the `Keep-Alive' request header to
>> request persistent connections, and understands both the HTTP/1.0
>> `Keep-Alive' and the HTTP/1.1 `Connection: keep-alive' response header.
>
> HTTP 1.1 servers don't (normally) use "Connection: keep-alive".

Some of them do when talking to HTTP/1.0 clients, where persistent
connections aren't default.  For example:

$ wget http://www.apache.org
--16:01:44--  http://www.apache.org/
[...]
 8 Keep-Alive: timeout=5, max=100
 9 Connection: Keep-Alive

To be on the safe side, Wget supports both response headers.