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>") Next %> </table>
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]