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

Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrators Guide522659-001
8-13
Passing CGI Environment Variables
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
pathname:
/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-24).
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
REMOTE_ADDR The IP address of the remote host making the request.
Format:
n.n.n.n
Example:
199.170.183.2
AUTH_TYPE If the server supports user authentication, and the CGI
program is protected, this is the protocol-specific
authentication method used to validate the user.
Example:
basic
Table 8-1. Environment Variables (page 3 of 6)
Environment Variable Description