[ Previous ] [ Contents ] [ Index ] [ Next ]

How Web Pages Run CGI Programs

There are several ways a Web page can run a CGI program:

URLs that Run CGI Programs

For each method of running a CGI program described in the previous section, the browser software sends a URL to the server. (In addition, the HTTP header sent with the URL includes some environment variables, which are described on page 108.)

Generally the URL to run a CGI program can have these parts:

CGI path[/extra path information ][?query string]

Field1=Value1&Field2=Value2&Field3=Value3

Spaces in the query string are replaced with plus signs (+). Any special characters (such as ?, =, &, +) are replaced with %xx, where xx is the hexadecimal value for that character. (See page 111 for more on how the query string is encoded.)

Here are some examples of URLs that could run a CGI program:

If your programs are not executed, make sure the program file allows read and execute access.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.