re:
Is there a place I can refer to for a list of such "variables"?
I use this handy dynamic page to list them :
servervars.aspx :
-----------------
<%@ Page Language="vb" %>
<%@ Import Namespace = "System.Web" %>
<script runat="server">
Public Sub Page_Load(Sender As System.Object, E As System.EventArgs)
'Server Variables
Dim vars As NameValueCollection = Request.ServerVariables
If Not IsPostBack Then
Names.DataSource=vars
Names.DataBind()
Else
ValuesHead.Text = "Values: "
If vars.Get(Names.SelectedItem.Text).ToString() = Nothing Then
Values.Text = "null"
Else
Values.Text = vars.Get(Names.SelectedItem.Text).ToString()
End If
End If
End Sub
</script>
<html>
<head>
</head>
<body>
<form id="Form1" runat="server">
<h3>Retrieving Server Variables
</h3>
<p>
Retrieve:
<asp

ropDownList id="Names" runat="server" AutoPostBack="true"></asp

ropDownList>
<br />
<asp:Label id="ValuesHead" runat="server"></asp:Label>
<br />
<b><asp:Label id="Values" runat="server" backcolor="Beige" width="500"></asp:Label></b>
</p>
</form>
</body>
</html>
-----------
That way, I have all the variables, and their names, easily available.
Remember that the general format for retrieving server variables is :
Request.ServerVariables("VARIABLE_NAME")
Also, there's quite a few equivalents in the native .Net class system.web,
by retrieving the properties for System.Web.HttpRequest .
See :
http://www.csharpfriends.com/quicks...d50a3a&namespace=System.Web&class=HttpRequest
If you prefer using a .net native method, that's the way to go.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================