Server Sample

This sample demonstrates one means by which you can access information contained in server variables. With server variables, you can determine the server's name (SERVER_NAME) or retrieve the HTTP headers (ALL_HTTP). Each individual server variable is retrieved by using its name as a key. For example, to retrieve the value of ALL_HTTP, use the command:

Request.ServerVariables("ALL_HTTP")

In addition, since ServerVariables is a collection, you can use a For Each ... Next loop to iterate through all variables found in the collection.


Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.