Re: help cgi & linux (part 2)

new topic     » goto parent     » topic index » view thread      » older message » newer message

BuLiba
----- Original Message -----
From: salix at freemail.hu
Subject: Re: help cgi & linux (part 2)

>Please find attached an .HTM and a short .EX for thestinf the mysterious
>1041th character of a POST string. Of course the "action" paramter
>should be changed in the HTM as well as the first line of the .EX
>according to your configuration.

Success. The problem is, I think, a bug in Euphoria, or perhaps in
ncurses, which Euphoria uses for input/output. I wrote a perl program
which reads the entire thing without problem, so it's not an Apache problem.

If you change the Euphoria pgm. get a single character at a time, using
getc(0),
things will read ok.

I added an integer variable len, and used value() to convert the
environment("CONTENT_LENGTH")
Then a loop
Query = ""
for i = 1 to len do
   Query &= getc(0)
end for

This reads the entire text, no 0 character anywhere.

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu