Variables

The SSI servlet currently implements the following variables:

 

Variable Name Description
AUTH_TYPE The type of authentication used for this user: BASIC, FORM, etc.
CONTENT_LENGTH The length of the data (in bytes or the number of characters) passed from a form.
CONTENT_TYPE The MIME type of the query data, such as “text/html”.
DATE_GMT Current date and time in GMT
DATE_LOCAL Current date and time in the local time zone
DOCUMENT_NAME The current file
DOCUMENT_URI Virtual path to the file
GATEWAY_INTERFACE The revision of the Common Gateway Interface that the server uses if enabled: “CGI/1.1”.
HTTP_ACCEPT A list of the MIME types that the client can accept.
HTTP_ACCEPT_ENCODING A list of the compression types that the client can accept.
HTTP_ACCEPT_LANGUAGE A list of the languages that the client can accept.
HTTP_CONNECTION The way that the connection from the client is being managed: “Close” or “Keep-Alive”.
HTTP_HOST The web site that the client requested.
HTTP_REFERER The URL of the document that the client linked from.
HTTP_USER_AGENT The browser the client is using to issue the request.
LAST_MODIFIED Last modification date and time for current file
PATH_INFO Extra path information passed to a servlet.
PATH_TRANSLATED The translated version of the path given by the variable PATH_INFO.
QUERY_STRING The query string that follows the “?” in the URL.
QUERY_STRING_UNESCAPED Undecoded query string with all shell metacharacters escaped with “\”
REMOTE_ADDR The remote IP address of the user making the request.
REMOTE_HOST The remote hostname of the user making the request.
REMOTE_PORT The port number at remote IP address of the user making the request.
REMOTE_USER The authenticated name of the user.
REQUEST_METHOD The method with which the information request was issued: “GET”, “POST” etc.
REQUEST_URI The web page originally requested by the client.
SCRIPT_FILENAME The location of the current web page on the server.
SCRIPT_NAME The name of the web page.
SERVER_ADDR The server’s IP address.
SERVER_NAME The server’s hostname or IP address.
SERVER_PORT The port on which the server received the request.
SERVER_PROTOCOL The protocol used by the server. E.g. “HTTP/1.1”.
SERVER_SOFTWARE The name and version of the server software that is answering the client request.
UNIQUE_ID A token used to identify the current session if one has been established.

 

When and Why to Use the Admin Interface
CGI

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?