Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: CGI POST input

From: joel::neely::fedex::com at: 19-Nov-2000 23:36

Hello, Gabriele, I wasn't able to get this to work. [rebol-bounce--rebol--com] wrote:
> Hello Joel! > > On 19-Nov-00, you wrote: > > JN> OTOH, if I try repeatedly calling for input, concatenating > JN> the results into a single string until the total length > JN> equals the content-length, I get a script that never > JN> terminates. > > JN> Does anyone know of an officially-sanctioned, reliable > JN> approach to reading data from large forms (via POST, of > JN> course)? > > Did you try opening console:// and reading from there? Like: > > port: open/binary/no-wait console:// > while [need-more-chars] [ > wait port > insert tail form-input copy port > ] > close port >
I used wait [port 5] hoping to get a timeout, but what I get instead is the script (apparently) terminating with no code following that point getting executed. It's late now, but I'll post a copy of the code tomorrow.
> (I didn't try if /NO-WAIT works with CONSOLE://, tough) >
It doesn't. -jn-