Include Tests
This file is: /home/obs-utl/999A-UTLS/WebServices/tclhttpd3.5.1/bin/../htdocs/include.shtml
The server supports server side command processing, generally known as server-side includes. The general HTML syntax is:
<!--#command arg=value arg=value -->
The commands supported are:
include
Include another file. The file is named with a virtual= or file= parameter. The virtual path is relative to the document root. The file path is relative to the current document.
echo
Echo the value of an environment variable. See the Environment section
below for the variables the server can set.
fsize
Return the size of a file. The file is named with a virtual= or file= parameter. The virtual path is relative to the document root. The file path is relative to the current document.
flastmod
Return the modify time of a file. The file is named with a virtual= or file= parameter. The virtual path is relative to the document root. The file path is relative to the current document.
exec
Execute the cmd= parameter and insert the results.
- <!--#fsize file=include.shtml -->: 3014
- <!--#flastmod file="include.shtml"-->: Wed Aug 29 08:35:52 EDT 2018
Environment
Get these with
<!--#echo var=varname -->
- PATH_TRANSLATED:
- /home/obs-utl/999A-UTLS/WebServices/tclhttpd3.5.1/bin/../htdocs/include.shtml
- CONTENT_LENGTH:
-
- CONTENT_TYPE:
-
- HTTP_ACCEPT :
- */*
- HTTP_AUTHORIZATION:
-
- HTTP_FROM :
-
- HTTP_REFERER:
-
- HTTP_USER_AGENT:
- Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
- QUERY_STRING:
-
- REQUEST_METHOD:
- GET
- SERVER_PORT:
- 8002
- SERVER_NAME:
- superbean
- SERVER_SOFTWARE:
- Tcl-Webserver/3.5.1 May 27, 2004
- SERVER_PROTOCOL:
- HTTP/1.0
- REMOTE_ADDR:
- 10.3.0.1
Exec tests
This should be the contents of /etc/motd, or a comment containing an error if it does not exist.
THIS IS THE SUPERBEAN BOX
There should be a comment following this that complains about
a missing /xyzzy file, (unless you have one!)
More stuff
Below is an errant include that accidentally includes itself!
The include processor limits the include depth to work around bugs like this.
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer
Standard Footer