Server Variables

One way of collecting valuable web statistics is through the use of server variables.  Server variables retrieve information from the user’s browser.  You can use these to get all kinds of useful information, such as browser details, connection methods, and many more.

To get a list of all of the available server variables, create a page called /ServerVariables.asp with the code below:

FOR EACH SV IN Request.ServerVariables
Response.Write "<p>" & SV & " = " & request.servervariables(SV) & "</p>"

Next, simply publish the page and open it in your favorite web browser.  It will display a list of variables for you.

< Back to ASP Scripts