HTTP Header Variables Available for Script Processing

HTTP header variables are moved into the WebFOCUS variable table and become WebFOCUS variables, at which point you can use them in WebFOCUS scripts to further customize processing and control of the WebFOCUS Client.

You can use standard HTTP header variables in addition to your WebFOCUS Client settings (see WebFOCUS Administration Console) to further customize processing and control of the WebFOCUS Client. You can place the following variables that are placed in the WebFOCUS variable table by the Servlet in site.wfs or in the node profile of a specified server.

HTTP Header Variables

Description

AUTH_TYPE

Specifies the authentication scheme (basic or digest) if an authorization header is supplied.

CONTENT_LENGTH

Stores the number of bytes of data sent. For POST requests only.

CONTENT_TYPE

Designates the MIME type of attached data.

DOCUMENT_ROOT

Specifies the actual address of the host directory.

HTTP_ACCEPT

Specifies the media (MIME) type the WebFOCUS Client prefers to accept, separated by commas.

HTTP_ACCEPT_ENCODING

Restricts the content-codings that are acceptable in the response.

HTTP_ACCEPT_LANGUAGE

Indicates which languages are preferred.

HTTP_USER_AGENT

Identifies the browser (or other client) making the request. It can be used to return content to different browsers.

HTTP_REFERER

Indicates the URL of the referring Web page.

PATH_INFO

Supplies any path information attached to the URL after the server address but before the query string.

PATH_TRANSLATED

Value of PATH_INFO with any virtual path name expanded into a directory specification.

QUERY_STRING

Information that follows the question mark (?) in the URL.

REMOTE_ADDR

IP address of the client that made the request.

REMOTE_HOST

Fully qualified domain name of the client that made the request.

REQUEST_METHOD

HTTP request method.

SCRIPT_NAME

Name of the script program being run.

SERVER_NAME

Server host name or IP address.

SERVER_PORT

TCP/IP port on which the request was received.

SERVER_PROTOCOL

Name and version of the information retrieval protocol that relates to a request.

SERVER_SOFTWARE

Name and version of the Web server.

URL_PROTOCOL

The default URL protocol (http or https).

Tip: You can use WebFOCUS Script Commands with HTTP header variables to further customize processing and control of the WebFOCUS Client.


WebFOCUS