• Http server

    From saito@saitology9@gmail.com to comp.lang.tcl on Thu Dec 18 13:50:05 2025
    From Newsgroup: comp.lang.tcl

    Is anyone using B. Welch's httpd server?

    I thought I could use it for a very simple use case: start the server,
    define a handler method, and then stop it after a condition is met. I
    have the pdf chapter but I have been quite distracted for some time now
    so some simple, working code would be helpful.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Fri Dec 19 09:13:16 2025
    From Newsgroup: comp.lang.tcl

    Am 18.12.2025 um 19:50 schrieb saito:
    Is anyone using B. Welch's httpd server?

    I thought I could use it for a very simple use case: start the server, define a handler method, and then stop it after a condition is met. I
    have the pdf chapter but I have been quite distracted for some time now
    so some simple, working code would be helpful.

    I know, that some people are using it, but not me.
    The wiki is full of alternate http servers.

    You may check-out Wub.

    I personally use the web server contained in the tclws package.
    But that is due to the fact, that I support it.

    Thanks for all,
    Harald


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Colin Macleod@user7@newsgrouper.org.invalid to comp.lang.tcl on Fri Dec 19 17:19:48 2025
    From Newsgroup: comp.lang.tcl

    saito <saitology9@gmail.com> posted:

    Is anyone using B. Welch's httpd server?

    I thought I could use it for a very simple use case: start the server, define a handler method, and then stop it after a condition is met. I
    have the pdf chapter but I have been quite distracted for some time now
    so some simple, working code would be helpful.

    I use tclhttpd for cmacleod.me.uk and newsgrouper.org . The documentation
    is a bit thin, I've sometimes had to dig into the source to work out how
    do something, but it works well.

    To serve static pages you can just put html files in the htdocs directory
    and start the server. For dynamic, script-generated content it's probably easiest to start with the Direct_Url method.
    --
    Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk

    FEED FEED FEED FEED FEED FEED FEED FEED
    GAZA GAZA GAZA GAZA GAZA GAZA GAZA GAZA
    NOW! NOW! NOW! NOW! NOW! NOW! NOW! NOW!
    --- Synchronet 3.21a-Linux NewsLink 1.2