Well, POST is interesting since when you start reading you don't know
how much data you're going to be getting. The post data is laid out,
from what I know, basically like an email message with attachments so
you get boundary lines splitting the different sections of data and
headers telling oyu about them... content-type, content-length,
encoding, etc.
Ideally what you would do, assuming you get the content length, you
read one line at a time, analyze the headers, and then do repetetive
copy or read-io calls to get the data from that sectoin and repeat
until you hit the end boundary line.
If you don't get the content-length or don't trust the webserver to
always give it to you, you'll have to read in blocks of data, search
them for the section breaks, and save the parts you want... a little
uglier but still not too hard.
that help?
Sterling
> 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...
>