page 10 of 21
If the client request required HTTP Authentication  (e.g., the
AUTH_TYPE meta-variable is set to "Basic" or "Digest"), then the
value of the REMOTE_USER meta-variable MUST be set to the user-ID
The REQUEST_METHOD meta-variable MUST be set to the method which
should be used by the script to process the request, as described in
REQUEST_METHOD = method
method = "GET" | "POST" | "HEAD" | extension-method
extension-method = "PUT" | "DELETE" | token
The method is case sensitive. The HTTP methods are described in
section 5.1.1 of the HTTP/1.0 specification  and section 5.1.1 of
the HTTP/1.1 specification .
The SCRIPT_NAME variable MUST be set to a URI path (not URL-encoded)
which could identify the CGI script (rather than the script's
output). The syntax is the same as for PATH_INFO (section 4.1.5)
SCRIPT_NAME = "" | ( "/" path )
The leading "/" is not part of the path. It is optional if the path
is NULL; however, the variable MUST still be set in that case.
The SCRIPT_NAME string forms some leading part of the path component
of the Script-URI derived in some implementation-defined manner. No
PATH_INFO segment (see section 4.1.5) is included in the SCRIPT_NAME
The SERVER_NAME variable MUST be set to the name of the server host
to which the client request is directed. It is a case-insensitive
hostname or network address. It forms the host part of the
SERVER_NAME = server-name
server-name = hostname | ipv4-address | ( "[" ipv6-address "]" )
RFC 3875 CGI Version 1.1 October 2004
A deployed server can have more than one possible value for this
variable, where several HTTP virtual hosts share the same IP address.
In that case, the server would use the contents of the request's Host
header field to select the correct virtual host.
The SERVER_PORT variable MUST be set to the TCP/IP port number on
which this request is received from the client. This value is used
in the port part of the Script-URI.
SERVER_PORT = server-port
server-port = 1*digit
Note that this variable MUST be set, even if the port is the default
port for the scheme and could otherwise be omitted from a URI.
The SERVER_PROTOCOL variable MUST be set to the name and version of
the application protocol used for this CGI request. This MAY differ
from the protocol version used by the server in its communication
with the client.
SERVER_PROTOCOL = HTTP-Version | "INCLUDED" | extension-version
HTTP-Version = "HTTP" "/" 1*digit "." 1*digit
extension-version = protocol [ "/" 1*digit "." 1*digit ]
protocol = token
Here, 'protocol' defines the syntax of some of the information
passing between the server and the script (the 'protocol-specific'
features). It is not case sensitive and is usually presented in
upper case. The protocol is not the same as the scheme part of the
script URI, which defines the overall access mechanism used by the
client to communicate with the server. For example, a request that
reaches the script with a protocol of "HTTP" may have used an "https"
A well-known value for SERVER_PROTOCOL which the server MAY use is
"INCLUDED", which signals that the current document is being included
as part of a composite document, rather than being the direct target
of the client request. The script should treat this as an HTTP/1.0
UP TO ROOT | UP TO DIR | TO FIRST PAGE
0.00923491 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)