Search the Catalog
CGI Programming on the World Wide Web

CGI Programming on the World Wide Web

By Shishir Gundavaram
1st Edition March 1996





This book is out of print, but it has been made available online through the O'Reilly Open Books Project.


Previous Chapter 3 Next
 

3. Output from the Common Gateway Interface

Contents:
Overview
CGI and Response Headers
Accept Types and Content Types
The Content-length Header
Server Redirection
The "Expires" and "Pragma" Headers
Status Codes
Complete (Non-Parsed) Headers

3.1 Overview

As described in Chapter 3, Output from the Common Gateway Interface, CGI programs are requested like any other regular documents. The difference is that instead of returning a static document, the server executes a program and returns its output. As far as the browser is concerned, however, it expects to get the same kind of response that it gets when it requests any document, and it's up to the CGI program to produce output that the browser is comfortable with.

The most basic output for a CGI program is a simple document in either plain text or HTML, which the browser displays as it would any document on the Web. However, there are other things you can do, such as:

Each of these techniques involves knowing a little bit about returning additional headers from the CGI program.


Previous Home Next
Examining Environment Variables Book Index CGI and Response Headers

Back to: CGI Programming on the World Wide Web


oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

© 2001, O'Reilly & Associates, Inc.