That's an interesting theft.
>Yes I know this raises other problems, it was just a suggestion. Does the
>program parsing MIME have to know the length at the beginning? Is it OK to know
>it later on, check against how many bytes were recieved, and detect it has got
Iff you can somehow switch back to "header interpretation" mode.
You've got to use some kind of boundary or delimiter. Otherwise the
"Content-Length: 12345678" will be seen as just more of the data. :-(
I addressed this problem when creating something I call
Sender Initiated File Transfer. I didn't want to use a second stream,
but couldn't always know ahead of time how big the file would be,
so I sent things in "segments" (bursts), x number of bytes at a time.
But that's not HTTP. :-(
-- Rick Troth, <email@example.com>, <firstname.lastname@example.org>, Houston, Texas, USA