When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles
Message Board
Related Web Technologies
User Tips!
Coding Tips

Sample Chapters
Commonly Asked Message Board Questions
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Stump the SQL Guru!
XML Info
Author an Article
ASP ASP.NET ASP FAQs Message Board Feedback
Print this page.

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.

FAQ Table of Contents   Date Functions 

ASP.NET [1.x] [2.0] | ASPFAQs.com | Advertise | Feedback | Author an Article