[REBOL] Re: CGI POST input
From: allenk:powerup:au at: 19-Nov-2000 17:50
----- Original Message -----
From: "Joel Neely" <[joel--neely--fedex--com]>
To: <[rebol-list--rebol--com]>
Sent: Sunday, November 19, 2000 3:59 PM
Subject: [REBOL] CGI POST input
> I recall some discussion relevant to this question, but can't find
> a definitive answer.
>
> I'm working on CGI code that takes input via POST from a form with
> a textarea. The input can vary widely in length. Using the simple
> scheme of
>
> request-method: system/options/cgi/request-method
> cgi-input: any [
> if request-method = "get" [
> system/options/cgi/query-string
> ]
> if request-method = "post" [
> input
> ]
> ]
>
> I get failure if the form uses POST and the combined length of all
> name/value pairs exceeds 4104 bytes, which is apparently the max
> length returned by a single call to input (this is consistent).
> I.e., the rest of the data are lost.
>
> OTOH, if I try repeatedly calling for input, concatenating the
> results into a single string until the total length equals the
> content-length, I get a script that never terminates.
>
> Does anyone know of an officially-sanctioned, reliable approach to
> reading data from large forms (via POST, of course)?
>
> -jn-
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
>
Hi Joel,
This a new entry in the Official FAQ which may be of use here.
http://www.rebol.com/faq.html#14982631
I haven't tested it on anything large yet.
Cheers,
Allen K