Re: Distinguishing 0-byte request body in HTTP/2

> On Sep 14, 2016, at 5:09 PM, Kazuho Oku <> wrote:
> Hi,
> Thank you very much for the clarification.
> So to paraphrase, the general rule for handling request body is
> defined in section 3.3.3 of RFC 7230 as:
>   6.  If this is a request message and none of the above are true, then
>       the message body length is zero (no message body is present).
> which means that in HTTP, there is no distinction between a request
> with zero-length body and a request _without_ a body.
> That means it is completely up to the HTTP client to whether or not to
> send `content-length: 0` for such requests, though each implementation
> may decide to send or not, depending on interoperability issues that
> might exist.

Yes, there is no semantic distinction.


Received on Thursday, 15 September 2016 20:07:54 UTC