Environment Variable Dump
Written by Eric Smith, Northstar Computer Systems LLC
Here's a quick snippet of code that will dump all the ServerVariables coming into a page. This is helpful for debugging pages that use these variables frequently:
<%
Dim objItem ' As Variant
For Each objItem in Request.ServerVariables
Response.Write objItem & ": " & Request.ServerVariables(objItem) & " "
Next ' objItem
%>
This is also helpful if you're looking for a piece of information and can't remember which server variable holds it.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 11/1/1999
|