Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Environment Variables 1

Status
Not open for further replies.

Daniel1

Programmer
Apr 6, 1999
1
US
Does anyone know the "definitions" for the HTTP Environment Variables retrieved with Request.ServerVariables? I have about half of them, but cannot find the rest. I am designing an ASP reference page and wanted to include a table of all of them on one page, this does not seem to exist anywhere on the internet.<br>
Thanks
 
Try this:<br>
<br>
&lt;%@language=Javascript%&gt;<br>
&lt;HTML&gt;<br>
&lt;HEAD&gt;<br>
&lt;/HEAD&gt;<br>
&lt;BODY&gt;<br>
&lt;Table&gt;<br>
&lt;TR&gt;&lt;TH&gt;Variable&lt;/TH&gt;&lt;TH&gt;Value&lt;/TH&gt;<br>
&lt;%<br>
//Create new Enumerator Object<br>
http=new Enumerator(Request.ServerVariables)<br>
%&gt;<br>
&lt;%<br>
//iterate through collection<br>
while (!http.atEnd(http))<br>
{<br>
//get one item<br>
i=http.item()<br>
//write it<br>
Response.Write9'&lt;tr&gt;&lt;td&gt;'+i+'&lt;/td&gt;&lt;td&gt;'+Request.ServerVariables(i)+'&lt;/td&gt;&lt;tr&gt;')<br>
//get next item<br>
http.moveNext()<br>
}<br>
%&gt;<br>
&lt;/table&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
If you want the VBScript Version I'll get it. With regards to the HTTP variables if its the actual definitions you are looking for, check the w3c site, or the microsoft site.<br>
How many variables have you got so far ?<br>

 
You can find descriptions of the HTTP variables in the NT Option Pack documentation that is installed when you installed IIS.<br>
<br>
URL: <br>
Internet Information Server<br>
Scripter's Reference<br>
Built in ASP objects reference<br>
Request Object<br>
Request Collections<br>
Server Variables<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top