Chapter 18. TclHttpd Web Server
This chapter describes TclHttpd, a Web server built entirely in Tcl. The Web server can be used as a standalone server, or it can be embedded into applications to Web-enable them. TclHttpd provides a Tcl+HTML template facility that is useful for maintaining site-wide look and feel, and an Application Direct URL that invokes a Tcl procedure in an application.
TclHttpd started out as about 175 lines of Tcl that could serve up HTML pages and images. The Tcl socket
and I/O commands make this easy, and the C language implementation of the Tcl runtime library makes the server surprisingly fast. Of course, there are lots of features in Web servers like Apache or Netscape that were not present in the first prototype. Steve ...
Get Practical Programming in Tcl and Tk, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.