Programming TclHttpd server
Providing the static content to the client, although crucial, is not the most passionate feature of modern web servers. The entire magic and source of extreme success of WWW in today's world comes from server-side programming and the ability to deliver dynamically generated responses—it may include a web page, image, or any other type of media.
In this section, we are going to present how TclHttpd
, being the fully-featured web server, is able to fulfill these challenges.
Providing static content
There is not much to write about it. The basic feature of the type of content referred to as static is that it does not depend on the request's parameters—the client is always served with exactly the same content they had requested, and usually, it is taken directly from the server's file system. Needless to say, TclHttpd
is able to do this. For example, the graphical file located at htdocs/images/lake.gif
will always be served as the answer to a request for http://127.0...