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-18
Passing CGI Environment Variables
(Continued from preceding page)
The following URL:
http://www.yourserver.com/samples/Scripts/
env.cgi?name=value&x=y
has the QUERY_STRING environment variable decoded into two
extra environment variables: name=value and x=y. If these name-
value pairs were passed to the env.cgi program found in
/samples/Scripts, the following would be returned:
Env CGI Script
Environment info follows
SERVER_PORT 80
name value
SERVER_PROTOCOL HTTP/1.0
SERVER_NAME comm.loc201.company.com
HTTP_USER_AGENT Mozilla/1.1N (Macintosh; I;
PPC)
SERVER_SOFTWARE iTP Secure WebServer/1.1-
SSL/1.1
HTTPS OFF
REMOTE_ADDR 155.186.131.240
QUERY_STRING=name=value&x name=value&x=y
AUTOMATIC_FORM_DECODING ON
HTTP_ACCEPT */*, image/gif, image/x-xbitmap,
image/jpeg
PATH
/bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bi
n
x y
GATEWAY_INTERFACE CGI/1.1
REQUEST_METHOD GET
SCRIPT_NAME /samples/Scripts/env.cgi
Table 8-2. Pathway Specific Environment Variables (page 2 of 3)
Environment
Variable Description