O'Reilly logo

Sams Teach Yourself CGI in 24 Hours, Second Edition by Rafe Colburn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Takes Place During an HTTP Session

Now you’ll learn exactly what happens when a Web browser requests a document from a Web server. Understanding the details of how Web browsers and servers communicate will come in handy later when I’m discussing how to build CGI scripts that take advantage of this architecture. An illustration of the steps in this process appears in Figure 6.1.

Figure 6.1. The steps in an HTTP session.

Step 1: Establish a TCP Connection

Before the HTTP protocol can go to work, the computer that is running the Web browser has to connect over the network to the computer running the Web server. This connection is established ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required