Brent

Platform: Win98, Tcl/Tk 8.3.2, TclHttpd 3.1.0.

Several small nits/questions:

The end of the httpd.tcl script is a vwait. When you source this into
another script, the outter script doesn't continue past the point where
httpd.tcl is sourced. Removing the vwait and putting it at the end of
the outter script fixes this. Is it the intent that people should edit
and modify httpd.tcl?

httpd.tcl also cannot be sourced multiple times. It complains that cget
is already exported into some namespace.

When a URL domain URL gets called as a POST action from some form, the
query data is not set. For example:
HTML:
   <form method=post action=/mine/doit>
    ...
    </form>

Tcl:

   Url_PrefixInstall /mine [list myhandler /mine]
    proc myhandler {prefix sock postfix} {
        upvar #0 Httpd$sock data

        if {[string compare $data(proto) "POST"] == 0} {
            # Oops, the $data(query) field is empty in this case, must
            # get at the data with Url_ReadPost?
        }
    }

Am I supposed to get the data with Url_ReadPost?

Thanks! --JYL


Reply via email to