iTP Secure WebServer System Administrator's Guide (Version 7.0)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—523346-012
8-13
Passing CGI Environment Variables
PATH_INFO Extra path information given by the Web client. CGI
programs can be accessed by their virtual path name
followed by extra information. This extra information is
contained in the PATH_INFO variable. If this information
comes through a URL, it is decoded by the server before it
is passed to the CGI program.
Format:
/dir1/dir2/dir3.../file
Example:
/images/logo.gif
PATH_TRANSLATED The translated version of PATH_INFO, after the server
applies a virtual-to-physical mapping to it.
Format:
/dir1/dir2/dir3.../file
Example:
The partial path /images/logo.gif becomes the full path
name:
/root/server/images/logo.gif
REQUEST_METHOD The method by which the request was made. For HTTP,
this is GET, HEAD, POST, and so on.
Format: method
SCRIPT_NAME A virtual path to the CGI program being executed, used for
self-referencing URLs.
Format:
/dir1/dir2/program_name
Example:
/search/name.cgi
QUERY_STRING The information following the question mark (?) in the URL
referencing this CGI program. This information is not
decoded by the server. This variable is set whenever there
is query information, regardless of command-line
decoding (see HTML Forms on page 8-25).
REMOTE_HOST The name of the host making the request. If the iTP
Secure WebServer does not know this name, it leaves this
variable unset.
To use this feature, you must enable DNS lookups by
including the ReverseLookup directive, with a value of
yes, in your configuration file.
Format:
machine.domain.category
Example:
www.company.com
Table 8-1. Environment Variables (page 3 of 6)
Environment Variable Description