Accueil > Divers (et d’été) > Informatique > Scripts et outils maison > Page ASP pour visualiser les variables serveurs

Page ASP pour visualiser les variables serveurs

mardi 18 juillet 2006, par 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...

  1. <%@ LANGUAGE = JScript %>
  2. <HTML>
  3. <HEAD>
  4. <TITLE>HTTP Server Variables</TITLE>
  5. </HEAD>
  6. <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  7. <font size="4" face="Arial, Helvetica">
  8. <b>HTTP Server Variables</b>
  9. </font><br>
  10. <hr size="1" color="#000000">
  11. <TABLE border=1>
  12. <TR>
  13. <TD><B>Variables</B></TD>
  14. <TD><B>Value</B></TD>
  15. </TR>
  16. <TR>
  17. <TD>ALL_HTTP</TD>
  18. <TD>
  19. <%= Request.ServerVariables("ALL_HTTP")%>
  20. </TD>
  21. </TR>
  22. <TR>
  23. <TD>ALL_RAW</TD>
  24. <TD>
  25. <%= Request.ServerVariables("ALL_RAW")%>
  26. </TD>
  27. </TR>
  28. <TR>
  29. <TD>CONTENT_LENGTH</TD>
  30. <TD>
  31. <%= Request.ServerVariables("CONTENT_LENGTH")%>
  32. </TD>
  33. </TR>
  34. <TR>
  35. <TD>CONTENT_TYPE</TD>
  36. <TD>
  37. <%= Request.ServerVariables("CONTENT_TYPE")%>
  38. </TD>
  39. </TR>
  40. <TR>
  41. <TD>QUERY_STRING</TD>
  42. <TD>
  43. <%= Request.ServerVariables("QUERY_STRING")%>
  44. </TD>
  45. </TR>
  46. <TR>
  47. <TD>SERVER_SOFTWARE</TD>
  48. <TD>
  49. <%= Request.ServerVariables("SERVER_SOFTWARE")%>
  50. </TD>
  51. </TR>
  52. <TR>
  53. <TD>CONTENT_LENGTH </TD>
  54. <TD>
  55. <%= Request.ServerVariables("CONTENT_LENGTH")%>
  56. </TD>
  57. </TR>
  58. <TR>
  59. <TD>HTTPS</TD>
  60. <TD>
  61. <%= Request.ServerVariables("HTTPS")%>
  62. </TD>
  63. </TR>
  64. <TR>
  65. <TD>LOCAL_ADDR </TD>
  66. <TD>
  67. <%= Request.ServerVariables("LOCAL_ADDR")%>
  68. </TD>
  69. </TR>
  70. <TR>
  71. <TD>HTTPS</TD>
  72. <TD>
  73. <%= Request.ServerVariables("HTTPS")%>
  74. </TD>
  75. </TR>
  76. <TR>
  77. <TD>PATH_INFO </TD>
  78. <TD>
  79. <%= Request.ServerVariables("PATH_INFO")%>
  80. </TD>
  81. </TR>
  82. <TR>
  83. <TD>PATH_TRANSLATED </TD>
  84. <TD>
  85. <%= Request.ServerVariables("PATH_TRANSLATED")%>
  86. </TD>
  87. </TR>
  88. <TR>
  89. <TD>REMOTE_ADDR </TD>
  90. <TD>
  91. <%= Request.ServerVariables("REMOTE_ADDR")%>
  92. </TD>
  93. </TR>
  94. <TR>
  95. <TD>REMOTE_HOST </TD>
  96. <TD>
  97. <%= Request.ServerVariables("REMOTE_HOST")%>
  98. </TD>
  99. </TR>
  100. <TR>
  101. <TD>REQUEST_METHOD</TD>
  102. <TD>
  103. <%= Request.ServerVariables("REQUEST_METHOD")%>
  104. </TD>
  105. </TR>
  106. <TR>
  107. <TD>SERVER_NAME</TD>
  108. <TD>
  109. <%= Request.ServerVariables("SERVER_NAME")%>
  110. </TD>
  111. </TR>
  112. <TR>
  113. <TD>SERVER_PORT</TD>
  114. <TD>
  115. <%= Request.ServerVariables("SERVER_PORT")%>
  116. </TD>
  117. </TR>
  118. <TR>
  119. <TD>SERVER_PROTOCOL</TD>
  120. <TD>
  121. <%= Request.ServerVariables("SERVER_PROTOCOL")%>
  122. </TD>
  123. </TR>
  124. <TR>
  125. <TD>SERVER_SOFTWARE</TD>
  126. <TD>
  127. <%= Request.ServerVariables("SERVER_SOFTWARE")%>
  128. </TD>
  129. </TR>
  130. <TR>
  131. <TD>HTTP_ACCEPT</TD>
  132. <TD>
  133. <%= Request.ServerVariables("HTTP_ACCEPT")%>
  134. </TD>
  135. </TR>
  136. <TR>
  137. <TD>HTTP_USER_AGENT</TD>
  138. <TD>
  139. <%= Request.ServerVariables("HTTP_USER_AGENT")%>
  140. </TD>
  141. </TR>
  142. <TR>
  143. <TD>HTTP_UA_PIXELS</TD>
  144. <TD>
  145. <%= Request.ServerVariables("HTTP_UA_PIXELS")%>
  146. </TD>
  147. </TR>
  148. <TR>
  149. <TD>HTTP_UA_COLOR</TD>
  150. <TD>
  151. <%= Request.ServerVariables("HTTP_UA_COLOR")%>
  152. </TD>
  153. </TR>
  154. <TR>
  155. <TD>HTTP_UA_OS</TD>
  156. <TD>
  157. <%= Request.ServerVariables("HTTP_UA_OS")%>
  158. </TD>
  159. </TR>
  160. <TR>
  161. <TD>HTTP_UA_CPU</TD>
  162. <TD>
  163. <%= Request.ServerVariables("HTTP_UA_CPU")%>
  164. </TD>
  165. </TR>
  166. <TR>
  167. <TD>HTTP_REFERER </TD>
  168. <TD>
  169. <%= Request.ServerVariables("HTTP_REFERER")%>
  170. </TD>
  171. </TR>
  172. <TR>
  173. <TD>HTTP_CONNECTION </TD>
  174. <TD>
  175. <%= Request.ServerVariables("HTTP_CONNECTION")%>
  176. </TD>
  177. </TR>
  178. <TR>
  179. <TD>URL </TD>
  180. <TD>
  181. <%= Request.ServerVariables("URL")%>
  182. </TD>
  183. </TR>
  184. <TR>
  185. <TD>REMOTE_USER</TD>
  186. <TD>
  187. <%= Request.ServerVariables("REMOTE_USER")%>
  188. </TD>
  189. </TR>
  190. </TABLE>
  191. </BODY> </HTML>

Télécharger

Un message, un commentaire ?

modération a priori

Ce forum est modéré a priori : votre contribution n’apparaîtra qu’après avoir été validée par un administrateur du site.

Qui êtes-vous ?
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.

Les spams donneront systématiquement lieu à dépôt de plainte. Les messages comportant trop de fautes d'orthographe seront purement et simplement supprimés.




adunblock.com | 522: Connection timed out

Error 522 Ray ID: 3c17225ea6bb35c6 • 2017-11-21 22:38:04 UTC

Connection timed out

You

Browser

Working
London

Cloudflare

Working
adunblock.com

Host

Error

What happened?

The initial connection between Cloudflare's network and the origin web server timed out. As a result, the web page can not be displayed.

What can I do?

If you're a visitor of this website:

Please try again in a few minutes.

If you're the owner of this website:

Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn't finish. The most likely cause is that something on your server is hogging resources. Additional troubleshooting information here.

-->