[REBOL] Re: html post
From: al:bri:xtra at: 8-Aug-2002 16:42
Hi, Brett. You wrote:
> As far as I'm aware, READ-IO is meant to be used inside some sort of loop,
ie. it is used multiple times until it exhausts the input.
I understood that to be the case as well. Unfortunately, I couldn't get that
to work.
> So as it stands, if I haven't misunderstood your code, your input-cgi
function is creating an arbitrary maximum input capacity.
For the example code, yes. In my Rebol/Wiki, where it works well, I use:
Query: make string! 2 + Length: to-integer
Rebol/options/cgi/content-length
read-io Rebol/ports/input Query Length
and so I know the length needed.
> Also IIRC, READ-IO an attracted an RT warning in the past that it should
be avoided where possible because it is low level. In this case I'm pretty
sure it can't be avoided - but hopefully some will up date my knowledge if
I'm incorrect on this. :^)
Let's hope there's something better soon. It's not very nice script at the
moment.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/