Re: trailers and pseudo-headers

Martin Thomson <martin.thomson@gmail.com> Wed, 02 July 2014 17:26 UTC

Return-Path: <ietf-http-wg-request@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 486AB1B2846 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Jul 2014 10:26:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.653
X-Spam-Level:
X-Spam-Status: No, score=-7.653 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 Whc2eTeI-bxi for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Jul 2014 10:26:38 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BAC461B2845 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 2 Jul 2014 10:26:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1X2OGl-00065c-M7 for ietf-http-wg-dist@listhub.w3.org; Wed, 02 Jul 2014 17:24:31 +0000
Resent-Date: Wed, 02 Jul 2014 17:24:31 +0000
Resent-Message-Id: <E1X2OGl-00065c-M7@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1X2OGd-00063Q-AK for ietf-http-wg@listhub.w3.org; Wed, 02 Jul 2014 17:24:23 +0000
Received: from mail-we0-f180.google.com ([74.125.82.180]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1X2OGc-0001Yu-IU for ietf-http-wg@w3.org; Wed, 02 Jul 2014 17:24:23 +0000
Received: by mail-we0-f180.google.com with SMTP id x48so11616992wes.11 for <ietf-http-wg@w3.org>; Wed, 02 Jul 2014 10:23:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KcsXHnnJ2VZgfVUF5koga75saKUpIDWcyaMpy3yOPuI=; b=rm6yjwi7mHejRclNFcuYmfktqMEdVoEMYTT7BgzBVK5NTNNWpydKtHsoaFbOfdt6Dj poUBAGVE39JDl7sU6k87Bup2Y662Ouh7zN91MW9GJ0cCfHUmfLwE6OnR5kx0fjExm5Lb bj0m/+ozNmyGxt0YUCxrEaJv7iFYX+5Q780OEqY3H7s8GHTPnGS2/7KX5SQ2H54YNLwx azjL/Kl8aZKnqynzzRBZTvcVrqbdgBE/I3GVA+i7qmS7DPezULjs7BwtUlsoJQFK+4Ds NwQuwyK8XjqmCKydoXugiRbeEAGB13gj7680DkttZUenaw/2VXIAdsg6Fu7mZZjkBe+0 fXwA==
MIME-Version: 1.0
X-Received: by 10.180.107.138 with SMTP id hc10mr20991335wib.47.1404321836273; Wed, 02 Jul 2014 10:23:56 -0700 (PDT)
Received: by 10.194.110.6 with HTTP; Wed, 2 Jul 2014 10:23:56 -0700 (PDT)
In-Reply-To: <53B3A631.80907@gmx.de>
References: <53B3A631.80907@gmx.de>
Date: Wed, 02 Jul 2014 10:23:56 -0700
Message-ID: <CABkgnnUU6aD9QtyoFxysPhWayNiitFw2rUUP7EbajVP7zR_H0g@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.180; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.735, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1X2OGc-0001Yu-IU f3a1f96eb4722764b3951518b11e2301
X-Original-To: ietf-http-wg@w3.org
Subject: Re: trailers and pseudo-headers
Archived-At: <http://www.w3.org/mid/CABkgnnUU6aD9QtyoFxysPhWayNiitFw2rUUP7EbajVP7zR_H0g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/25167
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>

On 1 July 2014 23:26, Julian Reschke <julian.reschke@gmx.de> wrote:
> Allowed? Forbidden? Bad idea?

I've added a commit to the PR that I created that deals with
pseudo-headers.  This forbids their use under the same conditions as
other malformed headers.  That is, that they should be treated as a
stream header, but notes that tunnels and other intermediaries might
not even need to check, so aren't required to.  This point is
especially relevant for trailers and other HEADERS frames, which -
unless we decide to remove them (see other issue regarding
END_SEGMENT) - will be ignored by pretty much everyone.