Skip to main content
Visual C++ Samples 
ShowVariables 

Demonstrates how to retrieve the values of the server variables that IIS makes available to your ISAPI extension and request handlers.

View ShowVariables.srf in a browser to see the values of the server variables made available to the request handler. Try refreshing the page, posting a form to the page from Form.srf, or changing other settings related to the page or your browser to see how the server variables change.

The request handler calls CHttpRequest::GetServerVariable on a succession of known server and environment variables and displays the results.

Demonstrates