1.1.4 HTTP Server Relays

The HTTP server does not need to do much. For the most part, it only needs to relay the output from the CGI script, and use that as the main part of the body replying to the original HTTP request.

As soon as the CGI ends the output file, the HTTP server ends the reply to the HTTP client. This concludes an HTTP connection.

Yes, an HTTP connection only lasts from the request to the time the HTTP server replies. This means if Tak decides to order one of the books listed by the search feature, that opens a new HTTP connection! This makes it rather difficult to track sessions. We'll definitely come back to this topic later.



Copyright © 2008-05-09 by Tak Auyeung