[ee122] Content-Length vs. Actual File Size
dank at eecs.berkeley.edu
Sun Oct 28 15:16:43 PDT 2007
Trust the content-length.
If using a persistent connection:
Any data that's longer is part of the server's next response.
Non-persistent and theres extra data: ignore it
If data is ever shorter then you should be waiting for more.
Jeff Wang wrote:
> How should we handle the case when the size of the data after header
> is longer (or shorter) than the Content-Length?
> Which information should we trust?
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
More information about the ee122