Request.ServerVariables, konstrukce For - Příklad

Výpis všech položek kolekce Request.ServerVariables.

Počet položek: 51

ALL_HTTPHTTP_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:www12.brinkster.com HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
ALL_RAWCache-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: www12.brinkster.com User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
APPL_MD_PATH/LM/W3SVC/12/ROOT
APPL_PHYSICAL_PATHE:\sites\www12\
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_LENGTH0
CONTENT_TYPE
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID12
INSTANCE_META_PATH/LM/W3SVC/12
LOCAL_ADDR65.182.100.62
LOGON_USER
PATH_INFO/mibla/priklady/request_servervariables_for.asp
PATH_TRANSLATEDE:\sites\www12\mibla\priklady\request_servervariables_for.asp
QUERY_STRING
REMOTE_ADDR38.103.63.17
REMOTE_HOST38.103.63.17
REMOTE_USER
REQUEST_METHODGET
SCRIPT_NAME/mibla/priklady/request_servervariables_for.asp
SERVER_NAMEwww12.brinkster.com
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/6.0
URL/mibla/priklady/request_servervariables_for.asp
HTTP_CACHE_CONTROLno-cache
HTTP_CONNECTIONclose
HTTP_PRAGMAno-cache
HTTP_ACCEPTAccept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODINGgzip
HTTP_ACCEPT_LANGUAGEen-us,en;q=0.5
HTTP_HOSTwww12.brinkster.com
HTTP_USER_AGENTCCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Výpis zdrojového textu souboru http://www12.brinkster.com:80/mibla/priklady/request_servervariables_for.asp
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
  <title>Jemný úvod do ASP - Request.ServerVariables, konstrukce For - Pøíklad</title>
</head>
<body>
     
<h1>Request.ServerVariables, konstrukce For - Pøíklad</h1>
     
<p>Výpis všech položek kolekce Request.ServerVariables.</p>
<p>Poèet položek: <%= Request.ServerVariables.Count %></p>

<table border="1">
<%
  For i = 1 To Request.ServerVariables.Count
    Response.Write "<tr><td>" & Request.ServerVariables.Key(i) & "</td>"
    Response.Write "<td>" & Request.ServerVariables.Item(i) & "</td></tr>"
  Next
%>
</table>


</body>
</html>

Hlavní stránka