Perceptive Enterprise Search Server variables provide information about the server, the connection with the client, and the current request on the connection. Server variables are accessible via script.
To gain access to a server variable, use Request.ServerVariables.
Variable | Description |
ALL_HTTP | All the HTTP headers sent by the client. |
APPL_MD_PATH | When using IIS bindings, returns the metabase path of the application. |
APPL_PHYSICAL_PATH | When using IIS bindings, returns the physical path corresponding to the metabase path in APPL_MD_PATH. |
AUTH_PASSWORD | When basic authentication is used, returns the password as entered in the client authentication dialog. |
AUTH_TYPE | Returns the authentication type used by the server. |
AUTH_USER | When basic authentication is used, returns the username as entered in the client authentication dialog. |
CONTENT_LENGTH | Returns the length of the content submitted by the user. |
CONTENT_TYPE | Indicates the content type of the request. |
GATEWAY_INTERFACE | Returns the version of the CGI gateway used by the server. |
HTTP_<HeaderName> | Returns the header specified by <HeaderName> from the request. |
HTTP_ACCEPT | Returns the value of the Accept header that contains a list of accepted formats. |
HTTP_ACCEPT_ENCODING | Returns a list of accepted encoding types, for example: "gzip, deflate". |
HTTP_ACCEPT_LANGUAGE | Returns a string describing the language to use for displaying content. |
HTTP_CONNECTION | Returns a string describing the connection type, for example: "Keep-Alive". |
HTTP_COOKIE | Returns the cookie string that was included with the request. |
HTTP_HOST | Returns the name of the Web server. |
HTTP_METHOD | The method used to make the request (same as REQUEST_METHOD). |
HTTP_REFERER | Returns a string that contains the URL of the page that referred the request to the current page. |
HTTP_URL | Returns the raw, encoded URL. |
HTTP_USER_AGENT | Returns a string describing the browser that sent the request. |
HTTP_VERSION | The name and version of the request protocol. |
HTTPS | Returns "ON" if the request was made using a secured socket layer (SSL) connection, otherwise "OFF". |
LOCAL_ADDR | Returns the server IP address upon which the request was made. |
LOGON_USER | Returns the name of the user that is processing the current request. |
PATH_INFO | Returns the path information passed in via the URL. The path information is the part of the URL after the domain, to the query string (?). e.g. http://www.lexmark.com/path/information?querystring |
QUERY_STRING | Returns the query string portion of the URL. The query string is the text after the question mark (?). |
REMOTE_ADDR | The IP address of the remote machine making the request. |
REMOTE_HOST | The name of the remote machine making the request, if this information is not present, the REMOTE_ADDR is returned. |
REMOTE_USER | The name of the user that is processing the current request. |
REQUEST_METHOD | The method used to make the request. For HTTP, this can be GET, HEAD, POST, and so on. |
SCRIPT_NAME | Returns the name of the script that is currently executing. |
SERVER_NAME | Returns the server's host name, DNS alias or IP address. |
SERVER_PORT | Returns the port number that the current request was received on. |
SERVER_PORT_SECURE | Returns "1" if the request was made using a secured socket layer (SSL) connection, otherwise "0". |
SERVER_PROTOCOL | Returns the name and version of the protocol, e.g. HTTP/1.0 |
SERVER_SOFTWARE | Returns the name and version of the server software that answers the request and runs the gateway. |
URL | Returns the base part of the URL, without any query string or extra path information. |