Re: Sections 3.3.2 and 3.3.3 allow bogus Content-Length?

A receiver cannot.

A sender can however (e.g. get file size, string length whatever).

A receiver therefore depends on the sender sending the correct value.


This is presuming the sender knows the length.  If the sender doesn't 
know the length it should not (MUST) set Content-Length header, but 
instead use chunking.


------ Original Message ------
From: "Jacob Champion" <champion.p@gmail.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Sent: 15/02/2017 12:24:48 PM
Subject: Re: Sections 3.3.2 and 3.3.3 allow bogus Content-Length?

>On 02/14/2017 03:18 PM, Adrien de Croy wrote:
>>The only true size of a body is what you obtain by counting its bytes.
>
>Can you explain how you would count the bytes in a message body if you 
>don't know where that body ends?
>
>--Jacob
>

Received on Tuesday, 14 February 2017 23:35:06 UTC