Re: GET / DELETE request bodies

Cory Benfield <cory@lukasa.co.uk> Tue, 25 February 2020 09:17 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 789673A0B28 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Feb 2020 01:17:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.65
X-Spam-Level:
X-Spam-Status: No, score=-2.65 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lukasa-co-uk.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99aE_bdsH3eY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 25 Feb 2020 01:17:01 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4A0C3A0B27 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 25 Feb 2020 01:17:01 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1j6WHc-0008V2-1K for ietf-http-wg-dist@listhub.w3.org; Tue, 25 Feb 2020 09:13:40 +0000
Resent-Date: Tue, 25 Feb 2020 09:13:40 +0000
Resent-Message-Id: <E1j6WHc-0008V2-1K@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <cory@lukasa.co.uk>) id 1j6WHX-0008UG-43 for ietf-http-wg@listhub.w3.org; Tue, 25 Feb 2020 09:13:35 +0000
Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <cory@lukasa.co.uk>) id 1j6WHU-0007FD-OZ for ietf-http-wg@w3.org; Tue, 25 Feb 2020 09:13:34 +0000
Received: by mail-lj1-x22c.google.com with SMTP id o15so13182521ljg.6 for <ietf-http-wg@w3.org>; Tue, 25 Feb 2020 01:13:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8zQpKqweK6xxyXfOwqHHKTSCJMur9mrK7Sv8N7VU8Z0=; b=LHu1VW401VInbvMK6uRYyKM6YNM7T0ER3qWGfLf+4eaIWFiXkyjKftIyatjt2+ld4Y abdfmPiU9taFtT0DqSyQIsZlPbZiLbxqZ98wuLJs3fJXoJAiwRi/qLJvZ2He/DPYMFgf xjCi2rD2GehK7FZj6BEiuUFU6nfn0Hsk2woHXgLp7ycrRVleEQqYWNYVFwN943hSgyPg E8CSZduEEr7uc2pwkHizFMXiDULWJdo50pIAp0DfQdQ9Q0czO1lJb58GDK3xNjZueO36 b14KKruXUR4G08u3aO48tH7DGIpqQ0IfBx6TlAW/6dqJesTjsANINK1ex50tQ3BsZqbd tz3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8zQpKqweK6xxyXfOwqHHKTSCJMur9mrK7Sv8N7VU8Z0=; b=kxjQqaAtp8cUGFkwnbP06++uc3e6LtcXLbGfFYKN8lsQq61negAjaInwg7utTS2G26 FlzNfXRbhx01y0kZHhE2fVDaGrTAl0DGjTpoaHDVOxy3SIRZRWUMyttFrmZP/GIwiRSM bsLQ11wlfJmW/LnjLQC8G+2UKCJCeC8Gmi0zbyyXq0/q4cuzKlviv/nV0pjOdLrBnEE+ y9Vb+AqKACb58jjSbzxkfRDHLHmB3jCqFD5wIbSHsj9mk2/8y/wUYSoiWRF7USSY/GfE eceWBVaHsEiin2uyPBvFZHWKkJ/Zp8o5YnN0iEmM3w1Yxp860YZps6yHYAxkAZ5B5MoY /uBA==
X-Gm-Message-State: APjAAAVtPEi+vIGXb3OIaEWtqy1vWylMK18Y9xvcCmibflXK8DzknkiQ SD7m0sKWk52XIAHXsvl32soMa3D7iQ415zjF7HmhjQ==
X-Google-Smtp-Source: APXvYqzDPsiNiFBM/6NKqazyuLrQRE9WH2vJZUl51zr/MlK4oZKpeiSo25Et4x43inLqPD/D7D4ZFGSTXuEJXVWcdt0=
X-Received: by 2002:a2e:80d1:: with SMTP id r17mr33278570ljg.292.1582621998509; Tue, 25 Feb 2020 01:13:18 -0800 (PST)
MIME-Version: 1.0
References: <CAChr6SyZN4ceSeHkfQVnKRX7=RPnKjX_vAsL1mTHs18-MKRphQ@mail.gmail.com> <CAH_hAJEdM+NeVKAwEC+8uQf_0Dv-ArEtetuSoOW3wcV9WMeMZw@mail.gmail.com> <22665322-3F2B-4B2A-AE8F-91A53DE75B9E@gbiv.com> <CAH_hAJFF-o_iPzU-DxvjC2YafgTnep1xCW9pnsiRvuLncjWD0g@mail.gmail.com> <D757AFEF-E2F6-4CD4-BE1F-DB82986458E2@gbiv.com>
In-Reply-To: <D757AFEF-E2F6-4CD4-BE1F-DB82986458E2@gbiv.com>
From: Cory Benfield <cory@lukasa.co.uk>
Date: Tue, 25 Feb 2020 09:13:07 +0000
Message-ID: <CAH_hAJH2s288J2gXux9mBmOP3GpKYb818=d6nbSkPmUKufpkbQ@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Rob Sayre <sayrer@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=cory@lukasa.co.uk; helo=mail-lj1-x22c.google.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1j6WHU-0007FD-OZ edd449a98ce3173f8df4a18fc82970e2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: GET / DELETE request bodies
Archived-At: <https://www.w3.org/mid/CAH_hAJH2s288J2gXux9mBmOP3GpKYb818=d6nbSkPmUKufpkbQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37389
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks Roy, this language seems like a reasonable compromise position.

Of course, I expect it to be roundly ignored given how many HTTP
implementations currently use bodies on these requests today, but it's
nice to try to define the correct thing even if it isn't widely done.
For my part: https://github.com/apple/swift-nio/issues/1414.

On Mon, 24 Feb 2020 at 17:32, Roy T. Fielding <fielding@gbiv.com> wrote:
>
> On Feb 24, 2020, at 8:19 AM, Cory Benfield <cory@lukasa.co.uk> wrote:
> But your forceful response on this seems to be out of line with the
> highly equivocal language in the RFC. It would have cost nothing for
> the RFC, instead of saying "A payload within a GET request has no
> defined semantics", to say "A payload in a GET request MUST be
> ignored". This doesn't forbid sending it, just forbids doing anything
> with it, and seems closer to your intent.
>
>
> We tried that and people chose to interpret "ignored" as "do not parse".
>
> Are you open to considering a work item for the next round of drafts
> to consider adding normative language that matches your position on
> request bodies?
>
>
> There are closed issues for GET and DELETE:
>
>   https://github.com/httpwg/http-core/issues/202
>
>   https://github.com/httpwg/http-core/issues/258
>
> which were merged for the next drafts:
>
>   https://github.com/httpwg/http-core/pull/300/files
>
> If that language is still not enough, then we can reopen them on review.
>
> ....Roy
>