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.

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

Source: Mike D. Jones
Viewed 14389 times