Save the following as allhttp.asp and run it:
<% @language = JavaScript %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>HTTP Server Variables</TITLE>
<link rel='P3Pv1' href='/w3c/p3ppolicy.xml'></HEAD></HEAD>
<BODY>
  <P ALIGN=CENTER><FONT SIZE=5><B>HTTP Server Variables</B></FONT></P>
  <TABLE BORDER>
  <TR><TH>Variable</TH><TH>Value</TH></TR>
  <%
    // create new Enumerator object
    http = new Enumerator(Request.ServerVariables)
    // iterate through collection
    while (!http.atEnd(http))
    {
      // get one item
      i = http.item();
      // show it and it's value
      Response.Write('<TR><TD>' + i + '</TD><TD>' + 
Request.ServerVariables(i) + '</TD></TR>')
      // get next item
      http.moveNext()
    }
  %>
  </TABLE>
</BODY>
</HTML>


----- Original Message ----- 
From: "chalcrow4" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 15, 2005 6:41 AM
Subject: [AspClassicAnyQuestionIsOk] Identifying server using ASP


Can anyone please tell me if it's possible to identify the current
server (by name or IP) that's running the script?  If so, how (or
clues)?  Love to the world on receipt of a positive response :)









Yahoo! Groups Links












------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hqiaacm/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124118452/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to