Obtain a Header List With ASP's ServerVariables Collection

The SeverVariables collection contains all kinds of information about the calling client and the server. For instance, you can determine a visitor's browser type with the HTTP_USER_AGENT variable. Or, you can use HTTP_REFERER to determine the referring Internet address. Not all browsers support the same headers, however.

To see a quick list of the headers supported within a browser, run the following code.

For Each var in Request.ServerVariables
With Response
.Write("" & var & ":")
.Write("" & Request.ServerVariables(var) & "")
End With

Source: Mike D. Jones
Viewed 10293 times