iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—522659-001
8-12
Passing CGI Environment Variables
SERVER_NAME The server host name, DNS alias, or IP address as it would 
appear in self-referencing URLs.
Format: 
fully-qualified-domain-name
or
ip-address
Example: 
www.company.com or 199.170.183.2
GATEWAY_INTERFACE The CGI specification to which this server complies. 
Format: 
CGI/revision
Example: 
CGI/1.1
The following environment variables are request specific.
SERVER_PROTOCOL The name and revision of the information protocol this 
request came in with. 
Format: 
protocol/revision
Example: 
HTTP/1.0
SERVER_PORT The port number to which the request was sent. 
Format: 
number-between-1-and-65535
Example: 
80
PATH_INFO Extra path information given by the web client. CGI 
programs can be accessed by their virtual pathname 
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
Table 8-1. Environment Variables (page 2 of 6)
Environment Variable Description










