Here is VBS to make a table displaying all the server variables.
<table border="1">
<tr>
<th>Server Variable</th>
<th>Value</th>
</tr>
<% For Each strKey In Request.ServerVariables %>
<tr>
<td><%= strKey %></td>
<td><%= Request.ServerVariables(strKey) %></td>
</tr>
<% Next %>
</table>
Here is JS to make the practically thing
Response.Write("<table><tr><th>Server Variable</th><th>Value</th></tr>\r\n");
for (var i=1; i<=Request.ServerVariables.Count; i++) {
Response.Write("<tr><td>"+Request.ServerVariables.Key(i)+"</td><td>"+Request.ServerVariables(i)+"</td></tr>\r\n");
}
Response.Write("</table>\r\n");
| Server Variable | Value |
|---|---|
| ALL_HTTP | HTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_ACCEPT:Accept: application/xhtml+xml,text/html;q=0.9,text/plain; HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_HOST:www.georgehernandez.com HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| ALL_RAW | Cache-Control: no-cache Connection: close Pragma: no-cache Accept: Accept: application/xhtml+xml,text/html;q=0.9,text/plain; Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip Accept-Language: en-us,en;q=0.5 Host: www.georgehernandez.com User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| APPL_MD_PATH | /LM/W3SVC/9/root/h |
| APPL_PHYSICAL_PATH | D:\inetpub\georgehernandez\h\ |
| AUTH_PASSWORD | |
| AUTH_TYPE | |
| AUTH_USER | |
| CERT_COOKIE | |
| CERT_FLAGS | |
| CERT_ISSUER | |
| CERT_KEYSIZE | |
| CERT_SECRETKEYSIZE | |
| CERT_SERIALNUMBER | |
| CERT_SERVER_ISSUER | |
| CERT_SERVER_SUBJECT | |
| CERT_SUBJECT | |
| CONTENT_LENGTH | 0 |
| CONTENT_TYPE | |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | off |
| HTTPS_KEYSIZE | |
| HTTPS_SECRETKEYSIZE | |
| HTTPS_SERVER_ISSUER | |
| HTTPS_SERVER_SUBJECT | |
| INSTANCE_ID | 9 |
| INSTANCE_META_PATH | /LM/W3SVC/9 |
| LOCAL_ADDR | 208.106.217.136 |
| LOGON_USER | |
| PATH_INFO | /h/xComputers/ASP/ASPObjects/EG/egServerVariables.asp |
| PATH_TRANSLATED | D:\inetpub\georgehernandez\h\xComputers\ASP\ASPObjects\EG\egServerVariables.asp |
| QUERY_STRING | |
| REMOTE_ADDR | 38.103.63.16 |
| REMOTE_HOST | 38.103.63.16 |
| REMOTE_USER | |
| REQUEST_METHOD | GET |
| SCRIPT_NAME | /h/xComputers/ASP/ASPObjects/EG/egServerVariables.asp |
| SERVER_NAME | www.georgehernandez.com |
| SERVER_PORT | 80 |
| SERVER_PORT_SECURE | 0 |
| SERVER_PROTOCOL | HTTP/1.1 |
| SERVER_SOFTWARE | Microsoft-IIS/6.0 |
| URL | /h/xComputers/ASP/ASPObjects/EG/egServerVariables.asp |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_CONNECTION | close |
| HTTP_PRAGMA | no-cache |
| HTTP_ACCEPT | Accept: application/xhtml+xml,text/html;q=0.9,text/plain; |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_HOST | www.georgehernandez.com |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
2007-07-22 19:58:05Z