ContentsIndexPreviousNext

8.3 Writing a CGI Program

Because browsers like Netscape and Internet Explorer communicate using HTTP (the protocol for sending HTML documents), your application must be able to interpret HTTP requests and return an HTTP response to the browser. This is where your CGI program comes in.


Note: HTTP is the protocol that governs how requests are submitted and responses are returned. The content of the response may be HTML or it may be some other MIME type. HTML is the most common.

More:

8.3.1 What Is CGI?

8.3.2 The CGI Program

8.3.2.1 Reading CGI variables

8.3.2.2 Using the ACCEPT verb

8.3.2.3 Using the C$GETCGI routine

8.3.2.4 Stripping carriage returns from CGI input

8.3.2.5 Processing the user's request

8.3.2.6 Generating the HTML output

8.3.2.7 Using the DISPLAY statement

8.3.2.8 Caching HTML output

8.3.2.9 Suppressing HTML headers

8.3.3 CGI Guidelines

8.3.4 Sample CGI Programs