SSI Echo Command
The echo command inserts the contents of a HTTP environment variable into the response stream being sent to the client replacing the ssi directive.
Examples and Results of Echo Commands
Your IP Address is: <!--#echo
Your browser is: <!--#echo
You came from: <!--#echo
The name of this document is: <!--#echo
The URI of this document is: <!--#echo
This document was last modified: <!--#echo
You are logged in as: <!--#echo
Todays date (GMT)is: <!--#echo var="DATE_GMT"
AUTH_TYPE : the type of authentication that the client and server used if this page denied anonymous access, e.g. 'Basic' or 'NTLM'
AUTH_PASSWORD : the password provided by the user to the server if this page denied anonymous access and the client authenticated using the Basic method.
AUTH_USER : the username provided by the user to the server if this page denied anonymous access under both Basic and NTLM methods.
CONTENT_LENGTH : the number of bytes of data sent as a POST to the server.
CONTENT_TYPE : the MIME type of the data sent as a POST to the server.
DOCUMENT_NAME : the full physical path and filename of the document requested.
DOCUMENT_ROOT : the root directory of the site.
DOCUMENT_URI : the full virtual path and filename of the document requested in relation to the root folder of the web site.
DATE_LOCAL : the current date and time of the server after adjustment from GMT.
Sunday, 04-Oct-2015 12:57:19 EDT
DATE_GMT : the current date and time of the server without any adjustment from GMT.
Sunday, 04-Oct-2015 16:57:19 GMT
GATEWAY_INTERFACE : the type of gateway used to handle the request, e.g. CGI/1.1
HTTP_ACCEPT : a comma-delimited list of MIME types that the client application has notified the server that it can accept.
text/xml,application/xml,application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, image/png, */*;q=0.5
HTTP_ACCEPT_ENCODING : a comma-delimited list of MIME types that the client application has notified the server that it can accept.
x-gzip, gzip, deflate
HTTP_ACCEPT_LANGUAGE : The LANGUAGE types the server is requested to accept as defined in the HTTP header and typically used for content negotiation.
HTTP_CONNECTION : The type of connection as defined in the HTTP header.
HTTP_HOST : The base URL of this host.
HTTP_REFERER : The URL of the page that made the request.
HTTP_USER_AGENT : The browser id or user-agent string identifying the browser.
LAST_MODIFIED : the date and time the document was last modified.
Saturday, 11-Sep-2004 13:06:59 EDT
PATH_INFO : the full virtual path and filename of the document requested, in relation to the root folder of the web site.
PATH_TRANSLATED : the full physical path and filename of the document requested.
QUERY_STRING : the value of any query string appended to the URL of the document requested, after translation from the URL-encoded format.
QUERY_STRING_UNESCAPED : the value of any query string appended to the URL of the document requested, before translation from the URL-encoded format.
REMOTE_ADDR : the IP address of the client machine that requested the page.
REMOTE_HOST : the host name or IP address of the network from which the client requested the page.
REMOTE_PORT : the port number used by the remote host when making this request.
REMOTE_USER : the name (if available) of the client machine that requested the page/username entered by the remote client
REQUEST_METHOD : the method used when requesting the page, 'Get' 'Head' or 'Post'
REQUEST_URI : the URI of the requested page, relevant to the document root.
SCRIPT_NAME : the full virtual path and filename of the document requested in relation to the root folder of the web site.
SERVER_ADDR : the IP address of the server for this URL.
SERVER_ADMIN : the administrators email address for this server.
SERVER_NAME : the network name or URL host name of the server that received the request.
SERVER_PORT : the port number on which the request was received, '80' for a normal web page requests and '443' for SSL secure requests.
SERVER_PORT_SECURE : the port number if the request was over a secure protocol.
SERVER_SIGNATURE : The HTML string that may be embedded in the page to identify this host .
<ADDRESS>Apache/1.3.42 Ben-SSL/1.60 Server at www.ssi-developer.net Port 80</ADDRESS>
SERVER_SOFTWARE : the name/version of the web server.
Apache/1.3.42 Ben-SSL/1.60 (Unix) mod_gzip/220.127.116.11a mod_fastcgi/2.4.6 mod_throttle/3.1.2 Chili!Soft-ASP/3.6.2 FrontPage/18.104.22.16835 mod_perl/1.31 PHP/4.4.9
SERVER_PROTOCOL : the HTTP protocol that the request was passed under, HTTP/1.1
PAGE_COUNT : number of hits on the current document since server came on-line
TOTAL_HITS : number of documents server has served since coming on-line
REFERRER : The URL of the document the viewer came from
URL : the complete URL that the user specified when requesting the document.
ALL_HTTP : all the name/value pairs for HTTP environment variables.