INTERNET-DRAFT Common Gateway Interface - 1.1 15 February 1996
REMOTE_ADDR = hostnumber
hostnumber = digits "." digits "." digits "." digits
digits = 1*digit
REMOTE_HOST
The fully qualified domain name of the agent sending the request
to the server, if available, otherwise NULL. Not necessarily that
of the client. Fully qualified domain names take the form as
described in section 3.5 of RFC 1034 [8] and section 2.1 of RFC
1123 [5]; a sequence of domain labels separated by ".", each
domain label starting and ending with an alphanumerical character
and possibly also containing "-" characters. The rightmost domain
label will never start with a digit. Domain names are not case
sensitive.
REMOTE_HOST = "" | hostname
hostname = *( domainlabel ".") toplabel
domainlabel = alphadigit [ *alphahypdigit alphadigit ]
toplabel = alpha [ *alphahypdigit alphadigit ]
alphahypdigit = alphadigit | "-"
alphadigit = alpha | digit
REMOTE_IDENT
The identity information reported about the connection by a RFC
931 [10] request to the remote agent, if available. The server may
choose not to support this feature, or not to request the data for
efficiency reasons.
REMOTE_IDENT = *CHAR
The data returned is not appropriate for use as authentication
information.
REMOTE_USER
This variable is specific to requests made with HTTP.
If AUTH_TYPE is "Basic", then the user-ID sent by the client. If
AUTH_TYPE is NULL, then NULL, otherwise undefined.
REMOTE_USER = "" | userid | *OCTET
userid = token
REQUEST_METHOD
This variable is specific to requests made with HTTP.
INTERNET-DRAFT Common Gateway Interface - 1.1 15 February 1996
The method with which the request was made, as described in
section 5.1.1 of the HTTP/1.0 specification [3].
REQUEST_METHOD = http-method
http-method = "GET" | "HEAD" | "POST" | extension-method
extension-method = token
The method is case sensitive.
SCRIPT_NAME
A URL path that could identify the CGI script (rather then the
particular CGI output). The syntax and semantics are identical to
a decoded HTTP URL `hpath' token [4].
SCRIPT_NAME = "" | "/" [ path ]
The leading "/" is not part of the path. It is optional if the
path is NULL.
The SCRIPT_NAME string is some leading part of the
component of the script URI derived in some implementation defined
manner.
SERVER_NAME
The name for this server, as used in the part of the script
URI. Thus either a fully qualified domain name, or an IP address.
SERVER_NAME = hostname | hostnumber
SERVER_PORT
The port on which this request was received, as used in the
part of the script URI.
SERVER_PORT = 1*digit
SERVER_PROTOCOL
=6= |