Server side includes tutorial: Environmental variables
In the table you will find the code necessary add environmental variables to our pages. 
You may get the code for this page here (save the file in your server as "aspvariables.shtml").
Description
Code
Result 
size of input posted from client <!--#echo var="QUERY_STRING"-->
size of input posted from client <!--#echo var="CONTENT_LENGTH"--> (none)
MIME type of content <!--#echo var="CONTENT_TYPE"--> (none)
The current GMT time <!--#echo var="DATE_GMT"--> Monday, 06-Feb-2012 14:31:52 GMT
current time/date <!--#echo var="DATE_LOCAL"--> Monday, 06-Feb-2012 09:31:52 EST
complete local directory path of the current document. <!--#echo var="DOCUMENT_NAME"--> e:\1kweb.com\ssitutorial\index.shtml 
local path of the current document referenced to the base directory of the web space <!--#echo var="DOCUMENT_URI"--> /ssi/variables2.shtml
date and time of the last modification of the current document <!--#echo var="LAST_MODIFIED"--> Monday, 25-Jan-2010 18:17:46 EST
URL of the document the client came from <!--#echo var="HTTP_REFERER"--> (none)
Numeric IP address of the client <!--#echo var="REMOTE_ADDR"--> 38.107.179.208
domain name of the client <!--#echo var="REMOTE_HOST"--> (none)
user name used to validate authentication from the remote client <!--#echo var="REMOTE_USER"--> (none)
HTTP method: GET OR POST <!--#echo var="REQUEST_METHOD"--> GET
server host name <!--#echo var="SERVER_NAME"--> www.submitside.com
the port used by httpd <!--#echo var="SERVER_PORT"--> 80
Which version of Httpd compliance <!--#echo var="SERVER_PROTOCOL"--> HTTP/1.1
The name of the HTML server software <!--#echo var="SERVER_SOFTWARE"--> Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.17
name of the proxy server through which this document is being processed <!--#echo var="FORWARDED"--> (none)
name of the proxy server through which this document is being processed <!--#echo var="HTTP_X_FORWARDED_FOR"--> (none)
unescaped query string sent by the client browser, all shell-special characters escaped with \ <!--#echo var="QUERY_STRING_UNESCAPED"--> (none)
name/version of the Common Gateway Interface <!--#echo var="GATEWAY_INTERFACE"--> CGI/1.1
path info that is sent <!--#echo var="PATH_INFO"--> (none)
'PATH_INFO' variable translated from virtual to local (physical) disk location <!--#echo var="PATH_TRANSLATED"--> e:\1kweb.com\ssitutorial\index.shtml 
virtual path of the script being executed <!--#echo var="SCRIPT_NAME"--> /ssi/variables2.shtml
comma separated list of mime types that are accepted by the remote browser <!--#echo var="HTTP_ACCEPT"--> text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
name of the remote client browser software <!--#echo var="HTTP_USER_AGENT"--> CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Below you will find the environmental variables in the table and a few additional ones:
 

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
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 


Tutorial home page

2010@ Submitside.com. All rights reserved.