| Server side includes tutorial: Environmental variables |
| Description |
|
|
|---|---|---|
| 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"--> | Sunday, 19-May-2013 03:44:09 GMT |
| current time/date | <!--#echo var="DATE_LOCAL"--> | Saturday, 18-May-2013 22:44:09 CDT |
| 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"--> | Friday, 08-Jun-2012 05:36:08 CDT |
| URL of the document the client came from | <!--#echo var="HTTP_REFERER"--> | (none) |
| Numeric IP address of the client | <!--#echo var="REMOTE_ADDR"--> | 54.234.67.55 |
| 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.0 |
| The name of the HTML server software | <!--#echo var="SERVER_SOFTWARE"--> | Apache |
| 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,application/xml;q=0.9,*/*;q=0.8 |
| name of the remote client browser software | <!--#echo var="HTTP_USER_AGENT"--> | CCBot/2.0 |
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 |