[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

body truncated on extra reads


Hi folks,

I'm curious - can anyone explain what actually happens internally if you try to read more from $r->read() than specified in the Content-Length header?

I noticed when trying subsequent calls to read after all bytes had been read that it truncates the buffer, which I guess is understandable as it could be the next request. I'm just wondering wether $r->read( $buffer, 1000 ) is a bad thing to do if the incoming content is only 900 bytes.

cheers
John


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.