Prev: regexp matching
Next: Playing a sound in WIndows
From: pmarin on 12 Mar 2010 06:19 Hi all. I have the following script that works with tcl 8.5 but not with 8.6 (nothing is showed in the browser). It only happens when a script use the ncgi package. The url is something like "http://foo.tcl?page=1". package require ncgi ::ncgi::parse ::ncgi::header set page [ncgi::value page] puts $page puts "hello World" Any idea?
From: Alexandre Ferrieux on 12 Mar 2010 07:54 On Mar 12, 12:19 pm, pmarin <pacog...(a)gmail.com> wrote: > Hi all. > > I have the following script that works with tcl 8.5 but not with 8.6 > (nothing is showed in the browser). It only happens when a script use > the ncgi package. > The url is something like "http://foo.tcl?page=1". > > package require ncgi > ::ncgi::parse > ::ncgi::header > > set page [ncgi::value page] > puts $page > puts "hello World" > > Any idea? Anything in the web server's error log ? -Alex
From: pmarin on 12 Mar 2010 09:06 On Mar 12, 1:54 pm, Alexandre Ferrieux <alexandre.ferri...(a)gmail.com> wrote: > On Mar 12, 12:19 pm, pmarin <pacog...(a)gmail.com> wrote: > > > > > Hi all. > > > I have the following script that works with tcl 8.5 but not with 8.6 > > (nothing is showed in the browser). It only happens when a script use > > the ncgi package. > > The url is something like "http://foo.tcl?page=1". > > > package require ncgi > > ::ncgi::parse > > ::ncgi::header > > > set page [ncgi::value page] > > puts $page > > puts "hello World" > > > Any idea? > > Anything in the web server's error log ? > > -Alex There is not error in the log. With Tcl 8.6 return a blank page with text/plain as type and with 8.5 return the correct page with text/html as type.
|
Pages: 1 Prev: regexp matching Next: Playing a sound in WIndows |