Chapter 2. The site’s design
Keep-Alive: 300
This instructs the server to keep the connection alive for 300 seconds in case
there are any more requests. After 300 seconds of idleness the server will drop
the connection.
For the record, I’ll also post the response. To make the example work, I’ve installed a
trivial index.html web page. We will use this later
HTTP/1.1 200 OK
Date: Wed, 19 Mar 2003 09:41:23 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Wed, 19 Mar 2003 09:40:21 GMT
ETag: "e011-13e-12910b40"
Accept-Ranges: bytes
Content-Length: 318
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>The DEFAULT web site</title>
</head><body>
<h1>Welcome to DEFAULT</h1>
<p>This is the DEFAULT web site.</p>
</body>
</html>
Figure 2-2. Outgoing HTTP response from the server
14
Comentarios a estos manuales