[ee122] question about persistent connection

vern at cs.berkeley.edu vern at cs.berkeley.edu
Sat Oct 27 13:29:56 PDT 2007


> .... But what if we ask a persistent connection and
> we request a file that is invalid. The server will politely reply
> 
> "HTTP/1.0 404 Not Found: /spam/is-tasty.html"
> 
> and no header will be sent to the client.

A header *will* be sent.  The server responds according to the HTTP
spec, so with a version, status code, explanation, and then also
any additional headers the server wishes to send.

> Wouldn't make sense for the server to always add a header to notify
> the client that the connection is being kept alive?

Yes, and it does.

		Vern


More information about the ee122 mailing list