Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Writing CGI handlers with the Icon language

Tech Computer Center logo

If you would like to use a CGI (Common Gateway Interface) link to construct a Web page on demand, you can do all the programming in Icon.

Here's a link to a CGI handler named icon.cgi. When you click on it, you will go to a page that shows the values of all the important environmental variables of the CGI interface. It also has a text field into which you can type any string and then see what that string looks like to the CGI handler.

The icon.cgi handler is constructed by compiling the Icon program named iconcgi.icn. This program uses some procedures from source file cgiutil.icn.

To see how these procedures are used to handle a forms query, see the forms test page. The source for this handler is a program named script7.icn.

For some general background on CGI programming, see the official CGI interface document, or see the PostScript document The HTML Common Gateway Interface (CGI).

Next: Using TCP Sockets with the Icon language
See also: The Icon trick bag
Previous: Backtracking in the Icon language
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 1996/08/04 21:33:45 UT
QR two-dimensional bar code