[ee122] Content-Length vs. Actual File Size

Daniel Killebrew 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.

Daniel

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
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
>
>   


More information about the ee122 mailing list