W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2016

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

From: Roy T. Fielding <fielding@gbiv.com>
Date: Thu, 15 Sep 2016 13:07:29 -0700
Cc: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Message-Id: <CBE27C63-29B0-437C-92AB-5B2E100F4153@gbiv.com>
To: Kazuho Oku <kazuhooku@gmail.com>
> On Sep 14, 2016, at 5:09 PM, Kazuho Oku <kazuhooku@gmail.com> 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.

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

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:54 UTC