iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—523346-002
8-14
Passing CGI Environment Variables
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
REMOTE_IDENT This variable is not supported.
REMOTE_USER If the server supports user authentication, and the CGI
program is protected, this is the authenticated user name.
Example:
sandeman
CONTENT_TYPE For queries with attached information, such as HTTP
POST, this is the content type of the data.
Format:
type/subtype
Example:
text/html
CONTENT_LENGTH The length of the content (in bytes) as given by the web
client.
Example:
768
Secure HTTP Environment
Variables
Description
SHTTP_AUTH_USER Contains the username sent by the client if the client is
using shared secret authentication or encryption. The
username and password are delivered using a Message
Authentication Code (MAC). This environment variable
has a value only if the SHTTP_PROCESS environment
variable includes the string AUTHENTICATED.
Example: outband:tandem
SHTTP_HEADER_
DATA
Supplies the CGI program with the SHTTP headers sent
by the client.
Example: see examples following table
Table 8-1. Environment Variables (page 4 of 7)
Environment Variable Description