Server Variables Sample
Shown below is an actual sample of an enumeration of the server variables
available from an ASP application running under IIS (Internet Information Server)
All of these variables are generated in real time using the script
shown below. Some variables are omitted for
security reasons.
| Variable Name |
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.aspnut.com
HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_REWRITE_URL:/reference/servervars/sample.asp
|
| 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.aspnut.com
User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
X-Rewrite-URL: /reference/servervars/sample.asp
|
| APPL_MD_PATH |
/LM/W3SVC/6439/ROOT |
| APPL_PHYSICAL_PATH |
OMITTED C:\pathtowebsiteroot\ |
| 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 |
6439 |
| INSTANCE_META_PATH |
/LM/W3SVC/6439 |
| LOCAL_ADDR |
208.101.48.245 |
| LOGON_USER |
|
| PATH_INFO |
/reference/servervars/sample.asp |
| PATH_TRANSLATED |
OMITTED C:\pathtowebsiteroot\pathinfo\webpage.ext |
| QUERY_STRING |
|
| REMOTE_ADDR |
38.103.63.18 |
| REMOTE_HOST |
38.103.63.18 |
| REMOTE_USER |
|
| REQUEST_METHOD |
GET |
| SCRIPT_NAME |
/reference/servervars/sample.asp |
| SERVER_NAME |
www.aspnut.com |
| SERVER_PORT |
80 |
| SERVER_PORT_SECURE |
0 |
| SERVER_PROTOCOL |
HTTP/1.1 |
| SERVER_SOFTWARE |
Microsoft-IIS/6.0 |
| URL |
/reference/servervars/sample.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.aspnut.com |
| HTTP_USER_AGENT |
CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_X_REWRITE_URL |
/reference/servervars/sample.asp |
|
The following script was used to generate this table.
<table border=0 cellpadding=0 cellspacing=1 bgcolor="#d0c0F0">
<tr><td>
<table border=0 cellpadding=3 cellspacing=0 bgcolor="#F0F0F8">
<tR bgcolor="#d0c0f0">
<td><b>Variable Name</b></td>
<td><b>Value</b></td>
</tr>
<%
With response
For Each sKey In Request.ServerVariables
.Write "<tR>" & vbCrLf
.Write vbTab & "<td valign=""top""><b>" & sKey & "</b></td>" & vbCrLf
.Write vbTab & "<td>" & Request.ServerVariables(sKey) & "</td>" & vbCrLf
.Write "</tR>" & vbCrLf
Next
End With
%>
</table>
</td></tr>
</table>
|
 |

|