To read the article online, visit


When a client requests a document from the server, IIS gathers some information from both the client and from the server and about the file being requested. This information is dumped into a collection known as the Request.ServerVariables collection. You ASP program has access to the collection, which is handy at times.

With the ServerVariables, you can obtain the client's browser information, the referring URL, their username (if you have IIS security set to not allow anonymous visitors), the URL being fetched, and a slew of other informative bits of information.

A complete article dealing with the Request.ServerVariables collection already exists on the site. It can be found at this URL.

You can see an example of the Request.ServerVariables collection being used in an ASP app by reading this article, which provides souce code for a dynamic content tree, so your visitors know what pages they've visited on your site.

Article Information
Article Title: Request.ServerVariables
Article Author: Scott Mitchell
Article URL:

Copyright 2018 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers