Re: T-E chunked trailers

Mark Nottingham <mnot@mnot.net> Fri, 10 February 2017 07:51 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 D00C912A04A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 9 Feb 2017 23:51:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.902
X-Spam-Level:
X-Spam-Status: No, score=-6.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, 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 FeiOraGjZ6vI for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 9 Feb 2017 23:51:48 -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 6D68B12A047 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 9 Feb 2017 23:51:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cc5wH-0006Ea-Ln for ietf-http-wg-dist@listhub.w3.org; Fri, 10 Feb 2017 07:48:17 +0000
Resent-Date: Fri, 10 Feb 2017 07:48:17 +0000
Resent-Message-Id: <E1cc5wH-0006Ea-Ln@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1cc5wC-0006Dp-QE for ietf-http-wg@listhub.w3.org; Fri, 10 Feb 2017 07:48:12 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <mnot@mnot.net>) id 1cc5w4-0006Aq-OX for ietf-http-wg@w3.org; Fri, 10 Feb 2017 07:48:07 +0000
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 98B3E22E253; Fri, 10 Feb 2017 02:47:41 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAOeYYRfye_oX4Vq-TmXrAQpz2LR3Zinw5jjk6kDmYX5vz5Hr3g@mail.gmail.com>
Date: Fri, 10 Feb 2017 18:47:38 +1100
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <EBBFC11E-CEF5-4738-BFD1-B0DB194F23A9@mnot.net>
References: <CAOeYYRfye_oX4Vq-TmXrAQpz2LR3Zinw5jjk6kDmYX5vz5Hr3g@mail.gmail.com>
To: Ashok Kumar <ashokkumarj@gmail.com>
X-Mailer: Apple Mail (2.3259)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-7.3
X-W3C-Hub-Spam-Report: AWL=2.349, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cc5w4-0006Aq-OX bab7a9813fa877e7914b384cc7aab0f6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: T-E chunked trailers
Archived-At: <http://www.w3.org/mid/EBBFC11E-CEF5-4738-BFD1-B0DB194F23A9@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33467
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>

If you're worried about a middlebox and the connection isn't encrypted, it's really game over; they can modify anything.

Cheers,


> On 10 Feb 2017, at 5:26 pm, Ashok Kumar <ashokkumarj@gmail.com> wrote:
> 
> Hi All,
> 
> rfc7230#section-4.4 talks about the Trailer header for Chunked T-E.
> 
> I need some clarity on expected behavior from server, 
> 
> When a User-Agent sends a POST request with Chunked body and includes a Trailer header (say with value content-md5) in the request headers, but doesn't include any trailers after the zero chunk in the POST body.
> 
> Should this be an error or can this be ignored?
> 
> Since none of the mandatory headers can be present, I feel that this can be ignored, 
> 
> But on the other hand, content-md5 not getting generated could be some middle box modifying the content and stripping off the trailer?
> 
> 
> Thanks in advance,
> Ashok

--
Mark Nottingham   https://www.mnot.net/