This is the front end for a little demo application called "demo.tcl". It is intented to show the features of the mkHttpd 1.0 web server. The following HTML pages will only work if you access them through the application and its built-in mkHttpd web server.
To start the application, navigate to the "demo" folder of the mkHttpd 1.0 distribution and double-click on "demo.tcl". Or from a command line shell, enter something like "wish83 demo.tcl" (Windows) or "wish8.3 demo.tcl" (Unix).
If you are viewing this page not via the application already, then start it up now and enter the URL http://localhost:1080. This will load the page again, but this time it was sent by the application's built-in mkHttpd package.
Besides from the "demo.tcl" application, there is also a small example program "ctest.c" that shows how to integrate the mkHttpd web server into a C/C++ program. Start up the binary ("ctest.exe" is included for Windows) then enter the URL http://localhost:1088. This will only work if you have a thread-enabled Tcl installation.
This page is static HTML. Sending HTML pages and other plain files is naturally the most basic function that every web server provides. Follow this link to get to just another static page.
The following link leads to a page that displays the actual time the application has. It also shows three color palettes created by means of a table and three nested loops.
The next link shows a page that displays the actual variable context that the sandbox of this session currently has. It includes the four automatically created arrays Session, Request, Mime and Query. Show it!
If a TSP page contains errors and cannot be parsed or executed, then the stack information is returned to the client so the error can be debugged. Go to a broken page.
Redirection is done by means of the exit command. The next page redirects you directly back to this page depending on a query parameter: Do not redirect or Redirect back
The following page page displays a tree structure that is written in pure HTML. Nodes can be expanded and collapsed. The TSP code contains a proc that creates the HMTL code for the tree.
The following link leads to a page that displays the up-time of the application. It also shows the current value of the application's sample entry field.
In order to demonstrate session control, follow this link to a login page. After successful login, a second page is displayed, which expires after 10 seconds of no activity.
mkHttpd allows to return data that is completely unrelated to the requested URL. If you click this link to the page fake.tsp then a page is returned that is actually created inside the application.