On Wed, 13 Oct 1999 [EMAIL PROTECTED] wrote:
no claim of elegance or efficency but this has been working for me
insert port post-message
while [none? port-reply: copy port ] [ wait 10]
reply-page: copy port-reply
while [port-reply: copy port] ; redundant
[append reply-page port-reply ]
close port
> Date: Wed, 13 Oct 1999 15:38:45 +1000
> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Saving Post Data
>
> I need to save the data that comes in from a form POST,
> how do read the correct amount of data?
>
> The example from the How-to only shows a fixed amount. All help greatfully
> recieved...
>
>
> This is the example from the cgi how-to
>
> print ["Content-Type: text/html^/^/"
> <HTML> <TITLE>"Thank You"</TITLE>
> <BODY>{This is the beginning of what we received.
> If this appears incorrect, please re-post.} <HR>]
> read-io system/ports/input data: make string! 2000 2000
> print data
>
> PS I had a look at Andrew's Post.r, but it uses input, and that justs time-
> out on IIS (presumably waiting for different line terminator)
>
> Cheers
>
> Allen K.
>
>
... nice weather eh [EMAIL PROTECTED]