Introduction to TclHttpd
The possibilities offered by Tcl go far beyond plain CGI scripting—the entire web server can be written using this language. But before you eagerly start writing your own, know that this task was already done by Brent Welch, the author of TclHttpd—the
powerful web server completely implemented using the Tcl language. The author claims that at the beginning the entire code had about 175 lines. Tcl's input/output subsystem is well crafted, and it offers maximum usability with minimum coding.
The homepage of TclHttpd
is located at http://www.tcl.tk/software/tclhttpd/. The latest available officially released version 3.5.1 was released on May 27th, 2004.This is both bad and good information: the code is pretty old and not actively supported, but it reached the maturity level long time ago. The code has its years, but you can't question its usability.
Note
The source code of the examples presented in this section is located in the in the 04tclhttpd
directory in the source...