Request.ServerVariables Demo

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


Server Varriable Value
ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_ENCODING:gzip HTTP_HOST:www.4guysfromrolla.com HTTP_IF_MODIFIED_SINCE:Sat, 21 Jul 2018 19:34:10 UTC HTTP_USER_AGENT:CCBot/2.0 (https://commoncrawl.org/faq/) HTTP_X_REWRITE_URL:/demos/servervariables.asp HTTP_X_ORIGINAL_URL:/demos/servervariables.asp
ALL_RAW Connection: Keep-Alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip Host: www.4guysfromrolla.com If-Modified-Since: Sat, 21 Jul 2018 19:34:10 UTC User-Agent: CCBot/2.0 (https://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.35
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.224.118.247
REMOTE_HOST 54.224.118.247
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.1
SERVER_SOFTWARE Microsoft-IIS/8.5
URL /demos/servervariables.asp
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST www.4guysfromrolla.com
HTTP_IF_MODIFIED_SINCE Sat, 21 Jul 2018 19:34:10 UTC
HTTP_USER_AGENT CCBot/2.0 (https://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]