Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

How to find out what you can know about a server

Using Request.ServerVariables in IIS code



8:54 pm on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

In the last few days, there has been a number of questions that have been answered with information retrieved from Request.ServerVariables. This code, first posted here, [webmasterworld.com ], shows how to do that. Similar code will work from .NET.

Place this code into an ASP page, then browse to the page. I suggest taking the page offline or restricting access to it, since some of the variables might help a hacker.

<table border="1">
<th colspan="2">ServerVariables</th>
Dim var
For Each var in Request.ServerVariables
Call Response.Write("<tr>")
Call Response.Write("<td><b>" & var & "</b>:</td>")
Call Response.Write("<td>" & Request.ServerVariables(var) _
& "</td>")
Call Response.Write("</tr>")

This code has been added to the Library [webmasterworld.com] if you are looking for it in the future.

[edited by: Xoc at 9:27 pm (utc) on Feb. 18, 2004]


8:59 pm on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

That's very useful - thanks for posting it!

Featured Threads

Hot Threads This Week

Hot Threads This Month