iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)

Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrators Guide522659-001
8-17
Passing CGI Environment Variables
Table 8-2. Pathway Specific Environment Variables (page 1 of 3)
Environment
Variable Description
AUTOMATIC_FORM
_DECODING
Causes form-encoded data and name-value pairs in the
QUERY_STRING environment variable to be stored in
environment variables.
This feature is only applicable to CGI objects with a MIME type of
application/x-httpd-guardian. The parsing automatically decodes
the form encoded data from the stdin file (or pseudo stdin in the
case of Pathway servers). The parsing mechanism also decrements
the CONTENT_LENGTH environment variable accordingly.
Format:
Region /* {AddCGI AUTOMATIC_FORM_DECODING ON
| OFF}
Example:
To retrieve the value of the form entry:
<INPUT SIZE=30 NAME="First_Name"> <b> Your
First Name</b> <br>
Use the following:
getenv ("First_Name");
In this example, the environment variables are made with the same
names as the name portion of the name value pair.
(Continued on next page)