This sample demonstrates how to gain access to the server variables for the active HTTP request.
This sample implements one class, EnumServerVars, which exposes the method enum. 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.
This project is available in the ...\iissamples\sdk\components\java\Samples subdirectory of the Internet services directory.