iTP Secure WebServer System Administrators Guide (Version 7.5+)
Table 16 Environment Variables (continued)
DescriptionEnvironment Variable
The entire Session Identifier.SI_SI
The 2-bit user context field from the ticket. This field is used
by the ticketing agent.
SI_UCTX
The user ID of the user accessing the content. This value is
extracted from the ticket. Except for anonymous ticketing,
SI_UID
the user ID is taken from a user database. You can use this
variable to present customized Web pages to particular
users.
Example:
967845
The SI_UID variable is present only if a valid ticket is
presented.
Table 17 Pathway Specific Environment Variables
DescriptionEnvironment Variable
Causes form-encoded data and name-value pairs in the
QUERY_STRING environment variable to be stored in
environment variables.
AUTOMATIC_FORM_DECODING
1
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.
This 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 namevalue 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
150 Using Common Gateway Interface (CGI) Programs










