Server variables

All available server variables may be obtained with the script bellow. Just save the script to your server and it will show you the values for each of the ServerVariables (use an url like http://www.yoursite.com/yourdir/servervariables.asp?a=hello&b=end)

servervariables.asp
<html><head><TITLE>Server Variables</TITLE></head>
<body bgcolor=FFFFFF>
<% 
For Each Key in Request.ServerVariables
response.write Key & ": " & request.servervariables(Key) & " <br><br>"
Next
%>
</body></html>

List of server 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
HTTPS
HTTPS_KEYSIZE
HTTPS_SECRET_KEYSIZE
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
HTTP_PRAGMA
HTTP_HOST
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE  See Language specific response
HTTP_ACCEPT_CHARSET
HTTP_COOKIE
HTTP_VIA
HTTP_X_FORWARDED_FOR
HTTP_CACHE_CONTROL
HTTP_ACCEPT
HTTP_USER_AGENT
HTTP_REFERER
ASP_VERSION
ASP_VERSION_MAJOR
ASP_VERSION_MINOR
ASP_OS

AspTutorial.info.