Server Variable Enumeration Sample

This Sample is located at Samples\ASP.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample implements one class, EnumServerVars, which exposes the enum method. When called, enum uses the AspContext class to retrieve both the Request and Response objects. Request.getServerVariables is called and the resulting RequestDictionary is enumerated, with each server variable being sent to the client browser using the Response.Write method.

Using the Sample

See Using the ASP Samples for instructions on installing, running, and uninstalling this sample.

Key Project Files

EnumServerVars.java

The main method of this class enumerates through server variables, by using framework.

EnumServerVars_test.asp

This file uses the framework to access server variables.

Technologies Demonstrated

ASP

© 1999 Microsoft Corporation. All rights reserved. Terms of use.