Help > Web Development > Reference > Scripting Objects > Request Object > ServerVariable Collection

Request.ServerVariables Collection

The server variable collection contains a list of values about the current request and environment.

Properties
Count Returns the number of known server variables sent this request.
Item(name or index) Returns the server variables with the given name or index.
Key(index) Returns the name of the server variables at the given index.

Remarks
If the item requested does not exist in the collection Perceptive Enterprise Search will return Empty.

You can access a server variable without specifying the Item property by calling Request.ServerVariables(variablename). 


VBScript
<%= Request.ServerVariables("SERVER_SOFTWARE") %>
<%= Request.ServerVariables("QUERY_STRING") %>
<%= Request.ServerVariables("CONTENT_TYPE") %>

Applies To
Request Object

See Also
Perceptive Enterprise Search Server Variables