You just connected to this page using a browser that says it is :
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322).
I found that out by using the ServerVariables Colection Object known as HTTP_USER_AGENT which returns your browser information. Below you can learn more about the Request.ServerVariables Collection.
In every request (hit) to the server there is a lot of information passed to the server and there is also a lot of information that the server itself generates about that request. In an ASP (Active Server Page) you can access those variables by using:
Request.ServerVariables("name of variable you wish to use")
Where name of variable you wish to use should be replaced with one of the variables you see below in the output.
You can create a new test.asp file on your Swift Systems web site and add the code below in to it (in the body section) and you will have your first Active Server Page working. With a little experimentation you can do a lot with just the ServerVariables collection.
Below is an example of the code that will list all of the variables available in the ServerVariables Collection. First it will output the name of the variable, then an equal sign (=) followed by the actual data in that variable for the connection you just made to this page. While this is crude, it is very useful as a reference as to what variables are available to you on the server.
--------------------------------------------------------------------------------
<%
for each thing in request.servervariables
tempvalue=request.servervariables(thing)
response.write thing & "=" & tempvalue & "<br>"
next
%>
--------------------------------------------------------------------------------
Actual Output of the code above:
ALL_HTTP=HTTP_ACCEPT:*/* HTTP_ACCEPT_LANGUAGE:en-us HTTP_CONNECTION:Keep-Alive HTTP_HOST:support.swiftsystems.com HTTP_REFERER:http://support.swiftsystems.com/support/developers/ASP/ HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) HTTP_COOKIE:ASPSESSIONIDAACRQCCR=AFAIEHFCNICGBDBJEOKMHJCO HTTP_UA_CPU:x86 HTTP________________:----- -------
ALL_RAW=Accept: */* Accept-Language: en-us Connection: Keep-Alive Host: support.swiftsystems.com Referer: http://support.swiftsystems.com/support/developers/ASP/ User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cookie: ASPSESSIONIDAACRQCCR=AFAIEHFCNICGBDBJEOKMHJCO UA-CPU: x86 ---------------: ----- -------
APPL_MD_PATH=/LM/W3SVC/12/Root
APPL_PHYSICAL_PATH=D:\swift\support.swiftsystems.com\
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=12
INSTANCE_META_PATH=/LM/W3SVC/12
LOCAL_ADDR=65.222.170.162
LOGON_USER=
PATH_INFO=/support/developers/ASP/ServerVariables.asp
PATH_TRANSLATED=D:\swift\support.swiftsystems.com\support\developers\ASP\ServerVariables.asp
QUERY_STRING=
REMOTE_ADDR=206.83.243.178
REMOTE_HOST=206.83.243.178
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/support/developers/ASP/ServerVariables.asp
SERVER_NAME=support.swiftsystems.com
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Microsoft-IIS/5.0
URL=/support/developers/ASP/ServerVariables.asp
HTTP_ACCEPT=*/*
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
HTTP_HOST=support.swiftsystems.com
HTTP_REFERER=http://support.swiftsystems.com/support/developers/ASP/
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
HTTP_COOKIE=ASPSESSIONIDAACRQCCR=AFAIEHFCNICGBDBJEOKMHJCO
HTTP_UA_CPU=x86
HTTP________________=----- -------
|