Request.ServerVariables Demo

This demo illustrates a listing of all of the server and environment variables.


Server Varriable Value
ALL_HTTP HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_ENCODING:x-gzip, gzip, deflate HTTP_HOST:www.4guysfromrolla.com HTTP_USER_AGENT:CCBot/2.0 (http://commoncrawl.org/faq/) HTTP_X_REWRITE_URL:/demos/servervariables.asp HTTP_X_ORIGINAL_URL:/demos/servervariables.asp
ALL_RAW Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: x-gzip, gzip, deflate Host: www.4guysfromrolla.com User-Agent: CCBot/2.0 (http://commoncrawl.org/faq/) X-REWRITE-URL: /demos/servervariables.asp X-ORIGINAL-URL: /demos/servervariables.asp
APPL_MD_PATH /LM/W3SVC/14/ROOT
APPL_PHYSICAL_PATH D:\websites\b2b\4guysfromrolla.com\aspsite\wwwroot\www\
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 14
INSTANCE_META_PATH /LM/W3SVC/14
LOCAL_ADDR 10.200.96.27
LOGON_USER
PATH_INFO /demos/servervariables.asp
PATH_TRANSLATED D:\websites\b2b\4guysfromrolla.com\aspsite\wwwroot\www\demos\servervariables.asp
QUERY_STRING
REMOTE_ADDR 54.166.203.76
REMOTE_HOST 54.166.203.76
REMOTE_USER
REQUEST_METHOD GET
SCRIPT_NAME /demos/servervariables.asp
SERVER_NAME www.4guysfromrolla.com
SERVER_PORT 8001
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.0
SERVER_SOFTWARE Microsoft-IIS/7.5
URL /demos/servervariables.asp
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST www.4guysfromrolla.com
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_X_REWRITE_URL /demos/servervariables.asp
HTTP_X_ORIGINAL_URL /demos/servervariables.asp


Source Code
<TABLE>
      <TR>
           <TD>
                <B>Server Varriable</B>
           </TD>
           <TD>
                <B>Value</B>
           </TD>
      </TR>

      <% For Each name In Request.ServerVariables %>
      <TR>
           <TD>
                <%= name %>
           </TD>
           <TD>
                <%= Request.ServerVariables(name) %>
           </TD>
      </TR>
      <% Next %>
</TABLE>


[Return to the article]