Listing 1. Expanded SSI
<HTML>
<Head><Title>Testing</Title></Head>
<Body>
<H1>Testing</H1>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SOFTWARE=Apache/1.2.5
SERVER_NAME=chaim-weizmann
SERVER_PORT=80
REMOTE_HOST=127.0.0.1
REMOTE_ADDR=127.0.0.1
DOCUMENT_ROOT=/home/httpd/html
SERVER_ADMIN=root@localhost
SCRIPT_FILENAME=/home/httpd/html/test.shtml
REMOTE_PORT=1118
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/0.9
REQUEST_METHOD=GET
QUERY_STRING=
REQUEST_URI=/test.shtml
SCRIPT_NAME=/test.shtml
DATE_LOCAL=Wednesday, 18-Feb-1998 19:31:26 IST
DATE_GMT=Wednesday, 18-Feb-1998 17:31:26 GMT
LAST_MODIFIED=Wednesday, 18-Feb-1998 19:11:14 IST
DOCUMENT_URI=/test.shtml
DOCUMENT_PATH_INFO=
USER_NAME=reuven
DOCUMENT_NAME=test.shtml
</Body>
Copyright © 1994 - 2018 Linux Journal. All rights reserved.