Environment variables in CGI script
The following table is a list of all HTTP variables that can be passed from the Web GUI server to CGI scripts.
Variable |
Description |
---|---|
|
The name of the authentication scheme used to
protect the servlet. For example, |
|
The length of the request body in bytes made
available by the input stream or |
|
The MIME type of the body of the request, or
null if the type is not known. For HTTP servlets, the value returned
is the same as the value of the CGI variable |
|
The revision of the CGI specification being
used by the server to communicate with the script. It is " |
|
Variables with names beginning with "HTTP_"
contain values from the request header, if the scheme used is HTTP. |
|
Character preference information. Used to indicate
the client's prefered character set if any. For example, |
|
Defines the type of encoding that may be carried
out on content returned to the client. For example, |
|
Used to define which languages you would prefer
to receive content in. For example, |
|
If the request was forwarded, shows the address and port through of the proxy server. |
|
Specifies the Internet host and port number of the resource being requested. Required for all HTTP/1.1 requests. |
|
Used by a client to identify itself (or its user) to a proxy which requires authentication. |
|
The type and version of the browser the client
is using to send the request. For example, |
|
Optionally contains extra path information from the HTTP request that invoked the script, specifying a path to be interpreted by the CGI script. PATH_INFO identifies the resource or sub-resource to be returned by the CGI script, and it is derived from the portion of the URI path following the script name but preceding any query data. |
|
Maps the script's virtual path to the physical path used to call the script. This is done by taking any PATH_INFO component of the request URI and performing any virtual-to-physical translation appropriate. |
|
The query string that is contained in the request URL after the path. |
|
Returns the IP address of the client that sent
the request. For HTTP servlets, the value returned is the same as
the value of the CGI variable |
|
The fully-qualified name of the client that
sent the request, or the IP address of the client if the name cannot
be determined. For HTTP servlets, the value returned is the same as
the value of the CGI variable |
|
Returns the login of the user making this request if the user has been authenticated, or null if the user has not been authenticated. |
|
Returns the name of the HTTP method with which
this request was made. For example, |
|
Returns the part of the URL from the protocol name up to the query string in the first line of the HTTP request. |
|
Returns the host name of the server that received
the request. For HTTP servlets, it is the same as the value of the
CGI variable |
|
Returns the port number on which this request was received. For HTTP servlets, the value returned is the same as the value of the CGI variable SERVER_PORT. |
|
Returns the name and version of the protocol
the request uses in the following form: |
|
Returns the name and version of the servlet container on which the servlet is running. |
|
HTTP Cookie String. |
|
The user name of the user who is logged in. |
|
The |