Question regarding RFC 7230

"Hartford, Eric" <hartbeat@amazon.com> Sat, 07 January 2017 20:21 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 6DB7E129B1D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 7 Jan 2017 12:21:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.319
X-Spam-Level:
X-Spam-Status: No, score=-9.319 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 HDY78z4dM8PQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 7 Jan 2017 12:21:38 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 03B4C129B1C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 7 Jan 2017 12:21:36 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cPxRC-0002vV-Gn for ietf-http-wg-dist@listhub.w3.org; Sat, 07 Jan 2017 20:18:02 +0000
Resent-Message-Id: <E1cPxRC-0002vV-Gn@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ylafon@w3.org>) id 1cPxR8-0002ul-UP for ietf-http-wg@listhub.w3.org; Sat, 07 Jan 2017 20:17:58 +0000
Received: from raoul.w3.org ([128.30.52.128]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ylafon@w3.org>) id 1cPxQz-0001Lm-9e for ietf-http-wg@w3.org; Sat, 07 Jan 2017 20:17:53 +0000
Received: from homard.platy.net ([80.67.176.7] helo=[192.168.1.34]) by raoul.w3.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ylafon@w3.org>) id 1cPxQy-00083P-Nz for ietf-http-wg@w3.org; Sat, 07 Jan 2017 20:17:49 +0000
Content-Type: multipart/alternative; boundary="Apple-Mail=_5FD77E09-8875-4845-960D-B56332B14788"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: "Hartford, Eric" <hartbeat@amazon.com>
Resent-From: Yves Lafon <ylafon@w3.org>
Date: Fri, 06 Jan 2017 00:01:13 +0000
Resent-Date: Sat, 07 Jan 2017 21:17:45 +0100
Resent-To: ietf-http-wg@w3.org
Message-Id: <9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
X-Name-Md5: efe3dad792d606410c9cc49cedaffc94
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.3259)
X-W3C-Hub-Spam-Status: No, score=-4.8
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-3.199, W3C_NW=0.5
X-W3C-Scan-Sig: mimas.w3.org 1cPxQz-0001Lm-9e 348efd5fff8aa0695fdb2691964229b3
X-Original-To: ietf-http-wg@w3.org
Subject: Question regarding RFC 7230
Archived-At: <http://www.w3.org/mid/9F52BB0C-85FB-40EB-B5F8-6C6F91346A25@contoso.com>
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33265
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I have a few questions I was hoping to clarify.
 
Is a GET request allowed to have a body?  (the spec seems to say “yes”)
RFC 7230 3.3 <https://tools.ietf.org/html/rfc7230#section-3.3>
The presence of a message body in a request is signaled by a
Content-Length or Transfer-Encoding header field.  Request message
framing is independent of method semantics, even if the method does
not define any use for a message body.
 
Is the server allowed to look at the body in a GET request?  (debatable)
RFC 7231 4.3.1 <https://tools.ietf.org/html/rfc7231#section-4.3.1>
A payload within a GET request message has no defined semantics;
sending a payload body on a GET request might cause some existing
implementations to reject the request.