Page ASP pour visualiser les variables serveurs - Paul Courbis


   

CAUTION !

Please read this...



You'll fin below this text a semi-automated translation of the original website. Texts will be gradually reviewed to make them as accurate as possible but it's strongly recommanded to read the original page (preview on the right side of this text) :

Link to the original article


(if this link is broken, please go to the original website's root page and look for wanted data. Sorry about that).


Some parts of this website will never be translated to English. Part of them are user's comments that are not transfered from the French (original) version to this version. Obvously, you can leave your own comments here but they wont be transfered to the French version.

You can send comments or suggestions to the webmaster.

   
Paul Courbis


Home page > 03. Various (and summer) > 03. Computers > 02. Scripts and tools home > Page ASP pour visualiser les variables serveurs

Page ASP pour visualiser les variables serveurs

Tuesday 18 July 2006, by Paul Courbis

Il suffit d’installer cette page ASP sur le serveur web et de l’appeler pour visualiser les variables, cookies et autres... Cette page m’a été particulièrement utilie pour debugguer le comportement de Load-Balancers HTTP...

Voili...

<%@ LANGUAGE = JScript %>  
<HTML>
   <HEAD>
      <TITLE>HTTP Server Variables</TITLE>
   </HEAD>      
<BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  <font size="4" face="Arial, Helvetica">
     <b>HTTP Server Variables</b>
  </font><br>
<hr size="1" color="#000000">
  <TABLE border=1>
      <TR>
 <TD><B>Variables</B></TD>
 <TD><B>Value</B></TD>
     </TR>
      <TR>
     <TD>ALL_HTTP</TD>
     <TD>
 <%= Request.ServerVariables("ALL_HTTP")%>
     </TD>
     </TR>
      <TR>
     <TD>ALL_RAW</TD>
     <TD>
 <%= Request.ServerVariables("ALL_RAW")%>
     </TD>
     </TR>
      <TR>
     <TD>CONTENT_LENGTH</TD>
     <TD>
 <%= Request.ServerVariables("CONTENT_LENGTH")%>
     </TD>
     </TR>
      <TR>
     <TD>CONTENT_TYPE</TD>
     <TD>
 <%= Request.ServerVariables("CONTENT_TYPE")%>
     </TD>
     </TR>
      <TR>
     <TD>QUERY_STRING</TD>
     <TD>
 <%= Request.ServerVariables("QUERY_STRING")%>
     </TD>
     </TR>
      <TR>
     <TD>SERVER_SOFTWARE</TD>
     <TD>
 <%= Request.ServerVariables("SERVER_SOFTWARE")%>
     </TD>
     </TR>
      <TR>
     <TD>CONTENT_LENGTH </TD>
     <TD>
 <%= Request.ServerVariables("CONTENT_LENGTH")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTPS</TD>
     <TD>
 <%= Request.ServerVariables("HTTPS")%>
     </TD>
     </TR>
      <TR>
     <TD>LOCAL_ADDR </TD>
     <TD>
 <%= Request.ServerVariables("LOCAL_ADDR")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTPS</TD>
     <TD>
 <%= Request.ServerVariables("HTTPS")%>
     </TD>
     </TR>
      <TR>
     <TD>PATH_INFO </TD>
     <TD>
 <%= Request.ServerVariables("PATH_INFO")%>
     </TD>
     </TR>
      <TR>
     <TD>PATH_TRANSLATED </TD>
     <TD>
 <%= Request.ServerVariables("PATH_TRANSLATED")%>
     </TD>
     </TR>
      <TR>
     <TD>REMOTE_ADDR </TD>
     <TD>
 <%= Request.ServerVariables("REMOTE_ADDR")%>
     </TD>
     </TR>
      <TR>
     <TD>REMOTE_HOST  </TD>
     <TD>
 <%= Request.ServerVariables("REMOTE_HOST")%>
     </TD>
     </TR>
      <TR>
     <TD>REQUEST_METHOD</TD>
     <TD>
 <%= Request.ServerVariables("REQUEST_METHOD")%>
     </TD>
     </TR>
      <TR>
     <TD>SERVER_NAME</TD>
     <TD>
 <%= Request.ServerVariables("SERVER_NAME")%>
     </TD>
     </TR>
      <TR>
     <TD>SERVER_PORT</TD>
     <TD>
 <%= Request.ServerVariables("SERVER_PORT")%>
     </TD>
     </TR>
      <TR>
     <TD>SERVER_PROTOCOL</TD>
     <TD>
 <%= Request.ServerVariables("SERVER_PROTOCOL")%>
     </TD>
     </TR>
      <TR>
     <TD>SERVER_SOFTWARE</TD>
     <TD>
 <%= Request.ServerVariables("SERVER_SOFTWARE")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_ACCEPT</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_ACCEPT")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_USER_AGENT</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_USER_AGENT")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_UA_PIXELS</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_UA_PIXELS")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_UA_COLOR</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_UA_COLOR")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_UA_OS</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_UA_OS")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_UA_CPU</TD>
     <TD>
 <%= Request.ServerVariables("HTTP_UA_CPU")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_REFERER </TD>
     <TD>
 <%= Request.ServerVariables("HTTP_REFERER")%>
     </TD>
     </TR>
      <TR>
     <TD>HTTP_CONNECTION </TD>
     <TD>
 <%= Request.ServerVariables("HTTP_CONNECTION")%>
     </TD>
     </TR>
      <TR>
     <TD>URL </TD>
     <TD>
 <%= Request.ServerVariables("URL")%>
     </TD>
     </TR>
      <TR>
     <TD>REMOTE_USER</TD>
     <TD>
 <%= Request.ServerVariables("REMOTE_USER")%>
     </TD>
     </TR>
  </TABLE>    
</BODY> </HTML>

Reply to this article