[REBOL] CGI POST input
From: joel:neely:fedex at: 18-Nov-2000 23:59
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
cgi-input: any [
if request-method = "get" [
if request-method = "post" [
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)?