ServerVariables Property

Applies To   See Also  

The ServerVariables property provides a collection of variables, which have been predefined, and are stored on the server. Read-Only.

Syntax (VBScript)

Value = Request.ServerVariables(VarName)

Syntax (JavaScript)

Value = Request.ServerVariables.Item(VarName)

It is recommended that you use the helper_js.csp file for cross-platform compatibility. See Some key functions in helper_js.csp for more information.

Parts

Value

The value of the server variable.

VarName

The name of the server variable as a string. It may be one of the values specified in VarName Value Settings.

Remarks

Concatenated the following variables and strings will form the URL string for the request that was just sent to the server.

Request = SERVER_PROTOCOL & "://" & SERVER_NAME & ":" & _
SERVER_PORT & SCRIPT_NAME & PATH_INFO & "?" & _ 
QUERY_STRING

Note:    Always include the SERVER_PORT variable as not all servers operate on Port 80.

VarName Value Settings

Value Explanation

ACCEPT_LANGUAGE

The language in which the content should appear as requested by the client.

CONTENT_LENGTH

The content length as given by the client.

CONTENT_TYPE

This variable is used with regards to attached information such HTTP queries, GET, POST and PUT. It is the data type of this content.

HTTP_ACCEPT_LANGUAGE

The language in which the content should appear. This variable is equivalent to ACCEPT_LANGUAGE.

HTTP_USER_AGENT

A string describing the browser that sent the request.

PATH_INFO

Additional path information that is given by the client. It is possible to access a script using its virtual path and this variable.

QUERY_STRING

The query string in the URL specifying arguments passed to the script.

REMOTE_ADDR

The IP address of the remote host that is making the request.

SCRIPT_NAME

The virtual path to the script being executed. The variable always supplies a blank string unless the web server is using a CGI connector. In this case the virtual path and name of the CGI application that is handling the script are returned.

SERVER_NAME

The host name, DNS alias, or IP address of the server.

SERVER_PORT

The port number to which the request was sent.

SERVER_PROTOCOL

The name and revision of the request information protocol. The format is protocol/revision e.g. HTTP or HTTPS.

WCS_HOST_NAME

The host name of the machine the WCS is running on

WCS_LISTENING_PORT

The TCP/IP port that the WCS is listening on for establishing connections with a Web Connector.

WCS_NAME_SERVER

The APS that the WCS is registered with. This should be used as the APS to logon to.

WCS_SERVER_NAME

The "friendly" name of the WCS as registered with the nameserver.

WCS_SOCKS_URI

Socks servers in URI format for logging onto APS through firewall.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com