Get Server Variable Info
Posted: 2002-06-01
By: ArchiveBot
Viewed: 55
Filed Under:
No attachments for this post
To gather all server variables, and display them nicely in a readable format.
Original Author: Matt Khoury
Inputs
Create a page where you want all the server variable information to display.
Assumptions
Nothing, just copy and paste.
Returns
This code returns all the server variable information and displays them with alternating row color.
Side Affects
None that I am aware of.
API Declarations
Just include my name, and information where you use this code.
Code
<%
'--Created by: Matthew J. Khoury
Dim strSV, intRowColor
For Each strSV In Request.ServerVariables
If intRowColor = 0 Then
Response.Write ""
intRowColor = 1
Else
Response.Write "" "
intRowColor = 0
End if
Response.Write " " & strSV & "=" & Request.ServerVariables(strSV) & "
Next
%>
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.