ASP 101 - Active Server Pages 101 - Web05
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





Script Output:
Hello visitor from 204.236.226.210! Your browser identifies itself as ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com).

Server Variable Value
ALL_HTTP HTTP_CONNECTION:close HTTP_FROM:crawler@alexa.com HTTP_HOST:www.asp101.com HTTP_USER_AGENT:ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com) HTTP_X_REWRITE_URL:/Samples/servvars.asp?  
ALL_RAW Connection: close From: crawler@alexa.com Host: www.asp101.com User-Agent: ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com) X-REWRITE-URL: /Samples/servvars.asp?  
APPL_MD_PATH /LM/W3SVC/40/Root/samples 
APPL_PHYSICAL_PATH D:\Inetpub\WWWROOT\APSP01\ASP101\www\samples\ 
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
CONTENT_TYPE  
GATEWAY_INTERFACE CGI/1.1 
HTTPS off 
HTTPS_KEYSIZE  
HTTPS_SECRETKEYSIZE  
HTTPS_SERVER_ISSUER  
HTTPS_SERVER_SUBJECT  
INSTANCE_ID 40 
INSTANCE_META_PATH /LM/W3SVC/40 
LOCAL_ADDR 10.2.85.62 
LOGON_USER  
PATH_INFO /Samples/servvars.asp 
PATH_TRANSLATED D:\Inetpub\WWWROOT\APSP01\ASP101\www\Samples\servvars.asp 
QUERY_STRING  
REMOTE_ADDR 204.236.226.210 
REMOTE_HOST 204.236.226.210 
REMOTE_USER  
REQUEST_METHOD GET 
SCRIPT_NAME /Samples/servvars.asp 
SERVER_NAME www.asp101.com 
SERVER_PORT 80 
SERVER_PORT_SECURE
SERVER_PROTOCOL HTTP/1.0 
SERVER_SOFTWARE Microsoft-IIS/6.0 
URL /Samples/servvars.asp 
HTTP_CONNECTION close 
HTTP_FROM crawler@alexa.com 
HTTP_HOST www.asp101.com 
HTTP_USER_AGENT ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com) 
HTTP_X_REWRITE_URL /Samples/servvars.asp? 

ASP HTML Download            FAQ

Above is a table of all the cool things you have access to via the Request.ServerVariables collection. Now, I know what you're thinking: "What do server variables have to do with any of this information?" Well, I don't know, but what I do know is that all of the HTTP header information that is sent by the client's browser to your server is available via this collection. You did catch that part about the client's browser....yes folks, some of these variables are browser specific! Luckily most of them are pretty well standardized. Just don't go using something like "HTTP_UA_PIXELS" and you'll be fine (It only works in old versions of IE!).

Look at all the info we can get! You'll notice some of these are empty. Many of them only contain data in certain situations. For instance, all the variables that start with "CERT_" have to do with authentication certificates. Since we aren't using any on this site, these fields are naturally blank. The same goes for the "HTTPS_" and "AUTH_" groups of variables.

One other thing to note is that this script display all of the variables that currently exist. So, if you fire up a browser different from the one you're using now, you may gain and/or lose some of the variables listed above. In other words, this isn't a comprehensive list of all possible server variables, it's simply a list of the ones that the combination of your browser and our server makes available.

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