Request Servervariables :Webitcorp
Request.ServerVariables
The ServerVariables collection is used to retrieve the server variable values.
You Are Not using Mozilla This is your HTTP InfoCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
The Code
<%
Dim strUserAgent
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strRightAgent = Request.ServerVariables("HTTP_USER_AGENT")
bolOther = True
If Left(strUserAgent, 7) = "Mozilla" then
Response.Write("Mozilla<br />")
Response.Write(strUserAgent)
End If
%>
More Request.ServerVariables Examples
Request.ServerVariables("URL")
Request.ServerVariables("PATH_INFO")
Try it with each one of these variables:
- ALL_HTTP
- ALL_RAW
- APPL_MD_PATH
- APPL_PHYSICAL_PATH
- 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
- HTTP_<HeaderName>
- HTTP_ACCEPT
- HTTP_ACCEPT_LANGUAGE
- HTTP_COOKIE
- HTTP_REFERER
- HTTP_USER_AGENT
- HTTPS
- HTTPS_KEYSIZE
- HTTPS_SECRETKEYSIZE
- HTTPS_SERVER_ISSUER
- HTTPS_SERVER_SUBJECT
- INSTANCE_ID
- INSTANCE_META_PATH
- LOCAL_ADDR
- LOGON_USER
- PATH_INFO
- PATH_TRANSLATED
- QUERY_STRING
- REMOTE_ADDR
- REMOTE_HOST
- REMOTE_USER
- REQUEST_METHOD
- SCRIPT_NAME
- SERVER_NAME
- SERVER_PORT
- SERVER_PORT_SECURE
- SERVER_PROTOCOL
- SERVER_SOFTWARE
- URL
loop through all of the server variables example
|