Chapter 19. Web Programming
This is the common air that bathes the globe.
The longest part of the journey is said to be the passing of the gate.
Marcus Terentius Varro
Railway termini ... are our gates to the glorious and unknown. Through them we pass out into adventure and sunshine, to them, alas! we return.
E. M. Forster
There comes a time in a man's life when to get where he has to goif there are no doors or windowshe walks through a wall.
In this chapter you will learn:
The Common Gateway Interface (CGI) protocol.
The Hypertext Transfer Protocol (HTTP) and HTTP headers.
Web server's functionality.
The Apache HTTP Server.
To request documents from a Web server.
To implement CGI scripts.
To send input to CGI scripts using XHTML forms.
19.2 HTTP Request Types
19.3 Multitier Architecture
19.4 Accessing Web Servers
19.5 Apache HTTP Server
19.6 Requesting XHTML Documents
19.7 Introduction to CGI
19.8 Simple HTTP Transactions
19.9 Simple CGI Scripts
19.10 Sending Input to a CGI Script
19.11 Using XHTML Forms to Send Input
19.12 Other Headers
19.13 Case Study: An Interactive Web Page
19.15 Server-Side Files
19.16 Case Study: Shopping Cart
19.18 Internet and Web Resources
Answers to Self-Review Exercises