Full list of ServerVariables

Submitted on: 1/5/2015 11:23:00 PM
By: Ian Ippolito (PSC)  
Level: Beginner
User Rating: By 7 Users
Compatibility: ASP (Active Server Pages)
Views: 1726
author picture
     You can get all sorts of useful information on the browser, using Request.Servervariables. However, one of the problems with the Visual Interdev help is that it doesn't list ALL the information you can get. Here is the most complete list I know of...if you have any additions, please feel free to append them as a comment!


ALL_HTTP are all HTTP headers sent by the client.

ALL_RAW retrieves all headers in the raw-form.

APPL_MD_PATH retrieves the metabase path.

APPL_PHYSICAL_PATH retrieves the physical path corresponding to the metabase path.

AUTH_PASSWORD is the value entered in the client's authentication dialog.

AUTH_TYPE is the authentication method that the server uses to validate users.

AUTH_USER is the raw authenticated user name.

CERT_COOKIE is an unique ID for client certificate which is returned as a string.

CERT_FLAGS is where bit0 is set to 1 if the client certificate is present, and bit1 is set to 1 if the certifying authority of the client certificate is invalid.

CERT_ISSUER is the issuer field of the client certificate.

CERT_KEYSIZE is the number of bits in Secure Sockets Layer connection key size.

CERT_SECRETKEYSIZE is the number of bits in the server certificate private key.

CERT_SERIALNUMBER is the serial number field of the client certificate.

CERT_SERVER_ISSUER is the issuer field of the server certificate.

CERT_SERVER_SUBJECT is the subject field of the server certificate.

CERT_SUBJECT is the subject field of the client certificate.

CONTENT_LENGTH is the length of the content header as sent by the client.

CONTENT_TYPE is the data type of the content.

GATEWAY_INTERFACE is the revision of the CGI specification used by the server.

HTTP_<HeaderName> is the value stored in the header HeaderName.

HTTP_ACCEPT returns the value of the Accept header.

HTTP_ACCEPT_ENCODING returns the value of the Accept encoding.

HTTP_ACCEPT_LANGUAGE returns a string that specifies the language to be used for displaying content.

HTTP_CONNECTION returns a string containing information about the connection.

HTTP_COOKIE returns the cookie string that was included with the request.

HTTP_HOST returns a string containing information about the host.


-->HTTP_REFERER returns a string containing the original URL when a redirect has occurred.

HTTP_USER_AGENT returns a string describing the browser used to send the request.

HTTP_UA_PIXELS returns a string detailing the screen resolution of the user agent.

HTTP_UA_COLOR returns a string with color information.

HTTP_UA_OS returns a string stating the operating system of the user agent.

HTTP_UA_CPU returns a string stating the processor type used by the user agent.

HTTPS returns ON if the request came in through secure channel or OFF if the request is through a non-secure channel.

HTTPS_KEYSIZE is the number of bits in Secure Sockets Layer (SSL) connection key size.

HTTPS_SECRETKEYSIZE is the number of bits in server certificate private key.

HTTPS_SERVER_ISSUER is the issuer field of the server certificate.

HTTPS_SERVER_SUBJECT is the subject field of the server certificate.

INSTANCE_ID is the ID for the Internet Information Server (IIS) instance in text format.

INSTANCE_META_PATH is the metabase path for the instance of Internet Information Server (IIS) that responds to the request.

LOCAL_ADDR returns the server address on which the request came in.

LOGON_USER is the Windows account that the user is logged into.

PATH_INFO is extra path information as given by the client.

PATH_TRANSLATED is a translated version of PATH_INFO that takes the path and performs any necessary virtual-to-physical mapping.

QUERY_STRING is the query information stored in the string following the question mark (?) in the HTTP request.

REMOTE_ADDR is the Internet Protocol (IP) address of the remote host making the request.

REMOTE_HOST is the name of the host making the request.

REMOTE_USER is an unmapped user-name string sent in by the user.

REQUEST_METHOD is the method used to make the request.

SCRIPT_NAME is a virtual path to the script being executed.

SERVER_NAME is the server's host name, Domain Name Server (DNS) alias, or Internet Protocol (IP) address.

SERVER_PORT is the port number to which the request was sent.

SERVER_PORT_SECURE is a string that contain a 1 if the request is being handled on the secure port, otherwise it is 0.

SERVER_PROTOCOL is the name and revision of the request information protocol.

SERVER_SOFTWARE is the name and version of the server software that answers the request and runs the gateway.

URL is the base portion of the URL.

Other 12 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.