From: pmarin on
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
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
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