web-developer
HomeWindows/IISDHTMLRankingIndex ServerContact me 
 


 

IIS HTTP Server Variables
(Appendix I)

Appendix I is named so because the Wrox Professional Active Server Pages 2.0 listed several useful HTTP server variables at the back of the book. You guessed it, in Appendix I. The table below represents the useful ones listed in that book along with other ones I've stumbled accross over time.

VariableMeaning
ALL_HTTPAll headers in an HTTP Format
ALL_RAWAll Headers in a RAW format
APPL_MD_PATHApplicaton Meta Data Path (the path as stored in IIS metadata)
APPL_PHYSICAL_PATHThe physical path of the application (d:\inetpub\wwwroot\)
AUTH_PASSWORDPassword used for Authentication this is an encrypted key in many cases
AUTH_TYPEUser authorization type. Basic if the username is authenticated by the server, otherwise omitted.
AUTH_USERThe user name used to authenticate (Windows)
CONTENT_LENGTHNumber of bytes being sent by the client
CONTENT_TYPEContent type when the REQUEST_METHOD is of type POST
DOCUMENTCurrent document file name.
DOCUMENT_URIVirtual path to the current document
DATE_GMTCurrent date, GMT. Can be formatted using #CONFIG directive.
DATE_LOCALCurrent Date, local, can be formatted using the #CONFIG directive.
GATEWAY_INTERFACECGI Specification of the gateway.
LAST_MODIFIEDLast edit date of the document.
LOGON_USERWindows NT account details for the user.
PATH_INFOAdditional path inormation as supplied by client-i.e. the part of the URL after the script name but before any query string.
PATH_TRANSLATEDThe value of PATH_INFO on any virtual path converted to a physical directory name.
QUERY_STRINGInformation following the question mark (?) in the URL scring.
QUERY_STRING_UNESCAPEDUn-escaped version of the querystring
REMOTE_ADDRIP Address of the client.
REMOTE_HOSTHostname of the client.
REMOTE_IDENTHostname of the client if it supports RFC931 identification.
REMOTE_USERClient's user anme, as authenticated by the server.
REQUEST_METHODRequest method type sent by client
SCRIPT_MAPMap used for Scripting.
SCRIPT_NAMEName of the script or application to be executed.
SERVER_NAMEHostname or IP address fo server for self-referencing URLs
SERVER_PORTThe TCP/IP port which received the request.
SERVER_PORT_SECUREValue of 1 indiciates the request is on anencrypted port.
SERVER_PROTOCOLProtocol name and version, usually HTTP/1.1. Depends on sofware on server and client side.
SERVER_SOFTWAREName and version of the web server software
URLUniversal Resource Locator address of current page