ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Sample HTML Code generated by the ASP:
<!-- Show greeting using selected server variables -->
Hello visitor from 111.111.111.2! Your
browser identifies itself as Mozilla/4.04 [en] (WinNT; I ;Nav).
<BR>
<BR>
<!-- Show all server variables -->
<TABLE BORDER=2>
<TR>
     <TD><B>Server Variable</B></TD>
     <TD><B>Value</B></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">ALL_HTTP</FONT></TD>
     <TD><FONT SIZE="-1">HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_LANGUAGE:en
HTTP_CONNECTION:Keep-Alive
HTTP_HOST:server
HTTP_USER_AGENT:Mozilla/4.04 [en] (WinNT; I ;Nav)
HTTP_COOKIE:ASPSESSIONIDQQGQQGUU=EKOJFCBDNMJJMFNGEFBMLCBI
HTTP_ACCEPT_CHARSET:iso-8859-1,*,utf-8
 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">ALL_RAW</FONT></TD>
     <TD><FONT SIZE="-1">Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Language: en
Connection: Keep-Alive
Host: server
User-Agent: Mozilla/4.04 [en] (WinNT; I ;Nav)
Cookie: ASPSESSIONIDQQGQQGUU=EKOJFCBDNMJJMFNGEFBMLCBI
Accept-Charset: iso-8859-1,*,utf-8
 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">APPL_MD_PATH</FONT></TD>
     <TD><FONT SIZE="-1">/LM/W3SVC/1/Root/asp101 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">APPL_PHYSICAL_PATH</FONT></TD>
     <TD><FONT SIZE="-1">C:\Inetpub\wwwroot\asp101 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">AUTH_PASSWORD</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">AUTH_TYPE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">AUTH_USER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_COOKIE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_FLAGS</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_ISSUER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_KEYSIZE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_SECRETKEYSIZE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_SERIALNUMBER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_SERVER_ISSUER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_SERVER_SUBJECT</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CERT_SUBJECT</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CONTENT_LENGTH</FONT></TD>
     <TD><FONT SIZE="-1">0 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">CONTENT_TYPE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">GATEWAY_INTERFACE</FONT></TD>
     <TD><FONT SIZE="-1">CGI/1.1 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTPS</FONT></TD>
     <TD><FONT SIZE="-1">off </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTPS_KEYSIZE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTPS_SECRETKEYSIZE</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTPS_SERVER_ISSUER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTPS_SERVER_SUBJECT</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">INSTANCE_ID</FONT></TD>
     <TD><FONT SIZE="-1">1 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">INSTANCE_META_PATH</FONT></TD>
     <TD><FONT SIZE="-1">/LM/W3SVC/1 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">LOCAL_ADDR</FONT></TD>
     <TD><FONT SIZE="-1">111.111.111.11 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">LOGON_USER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">PATH_INFO</FONT></TD>
     <TD><FONT SIZE="-1">/asp101/samples/test.asp </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">PATH_TRANSLATED</FONT></TD>
     <TD><FONT SIZE="-1">C:\Inetpub\wwwroot\asp101\samples\test.asp </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">QUERY_STRING</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">REMOTE_ADDR</FONT></TD>
     <TD><FONT SIZE="-1">111.111.111.2 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">REMOTE_HOST</FONT></TD>
     <TD><FONT SIZE="-1">111.111.111.2 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">REMOTE_USER</FONT></TD>
     <TD><FONT SIZE="-1"> </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">REQUEST_METHOD</FONT></TD>
     <TD><FONT SIZE="-1">GET </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SCRIPT_NAME</FONT></TD>
     <TD><FONT SIZE="-1">/asp101/samples/test.asp </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SERVER_NAME</FONT></TD>
     <TD><FONT SIZE="-1">server </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SERVER_PORT</FONT></TD>
     <TD><FONT SIZE="-1">80 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SERVER_PORT_SECURE</FONT></TD>
     <TD><FONT SIZE="-1">0 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SERVER_PROTOCOL</FONT></TD>
     <TD><FONT SIZE="-1">HTTP/1.0 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">SERVER_SOFTWARE</FONT></TD>
     <TD><FONT SIZE="-1">Microsoft-IIS/4.0 </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">URL</FONT></TD>
     <TD><FONT SIZE="-1">/asp101/samples/test.asp </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_ACCEPT</FONT></TD>
     <TD><FONT SIZE="-1">image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_ACCEPT_LANGUAGE</FONT></TD>
     <TD><FONT SIZE="-1">en </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_CONNECTION</FONT></TD>
     <TD><FONT SIZE="-1">Keep-Alive </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_HOST</FONT></TD>
     <TD><FONT SIZE="-1">server </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_USER_AGENT</FONT></TD>
     <TD><FONT SIZE="-1">Mozilla/4.04 [en] (WinNT; I ;Nav) </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_COOKIE</FONT></TD>
     <TD><FONT SIZE="-1">ASPSESSIONIDQQGQQGUU=EKOJFCBDNMJJMFNGEFBMLCBI </FONT></TD>
</TR>
<TR>
     <TD><FONT SIZE="-1">HTTP_ACCEPT_CHARSET</FONT></TD>
     <TD><FONT SIZE="-1">iso-8859-1,*,utf-8 </FONT></TD>
</TR>
</TABLE>


Output

Samples
Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers