Re: WGLC: draft-ietf-appsawg-http-forwarded-02.txt - section 5.1

John Sullivan <jsullivan@velocix.com> Tue, 15 May 2012 11:17 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2093021F8606 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 15 May 2012 04:17:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.744
X-Spam-Level:
X-Spam-Status: No, score=-7.744 tagged_above=-999 required=5 tests=[AWL=2.855, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xjf9XzCW-rdk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 15 May 2012 04:17:26 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9135621F84BF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 15 May 2012 04:17:26 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1SUFjS-0006ke-JT for ietf-http-wg-dist@listhub.w3.org; Tue, 15 May 2012 11:15:58 +0000
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <JSullivan@velocix.com>) id 1SUFjI-0006ji-2H for ietf-http-wg@listhub.w3.org; Tue, 15 May 2012 11:15:48 +0000
Received: from mail-out1.velocix.com ([81.134.152.10] helo=owa.velocix.com) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <JSullivan@velocix.com>) id 1SUFjE-00018g-MO for ietf-http-wg@w3.org; Tue, 15 May 2012 11:15:45 +0000
Received: from orthrus.eng.velocix.com (172.18.32.42) by exccam.corp.velocix.com (172.18.4.40) with Microsoft SMTP Server (TLS) id 14.2.247.3; Tue, 15 May 2012 12:15:17 +0100
Message-ID: <4FB23AB6.4070701@velocix.com>
Date: Tue, 15 May 2012 12:15:02 +0100
From: John Sullivan <jsullivan@velocix.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.21) Gecko/20090320 Fedora/2.0.0.21-1.fc10 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
CC: Willy Tarreau <w@1wt.eu>, Andreas Petersson <andreas@sbin.se>, Amos Jeffries <squid3@treenet.co.nz>, ietf-http-wg@w3.org
References: <4FA02AEA.1080407@isode.com> <0A15D230-F8D2-498F-894B-86A3C987C456@mnot.net> <aae9c9339c5d775b57e0371b609b9334@treenet.co.nz> <20120504113403.5a65e4ff@hetzer> <4FA5D74A.4020900@treenet.co.nz> <20120506055104.GB8105@1wt.eu> <20120514135554.551063c0@hetzer> <20120514123746.GJ1694@1wt.eu> <4FB10696.5040508@velocix.com> <20120514214840.GM1694@1wt.eu> <4FB17F56.2020609@gmx.de>
In-Reply-To: <4FB17F56.2020609@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.18.32.42]
Received-SPF: none client-ip=81.134.152.10; envelope-from=JSullivan@velocix.com; helo=owa.velocix.com
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: lisa.w3.org 1SUFjE-00018g-MO 1363512e5f220ba62bc865da67bf7aac
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC: draft-ietf-appsawg-http-forwarded-02.txt - section 5.1
Archived-At: <http://www.w3.org/mid/4FB23AB6.4070701@velocix.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/13544
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>
Resent-Message-Id: <E1SUFjS-0006ke-JT@frink.w3.org>
Resent-Date: Tue, 15 May 2012 11:15:58 +0000

Julian Reschke wrote:
> The HTTP community has been inventing new microsyntaxes for many years, 
> and as far as I can tell, most header field parsers out there are broken 
> beyond belief. We need less of them, even if this means that a few edge 
> cases will be more verbose than necessary.

This. Each new syntax risks getting it wrong (even if in this case
it ought to be fairly safe) - just look at the horrible horrible
mess that is the history of Set-Cookie.

In addition to the headers I pointed out yesterday that use
close variations on the theme, the definition of Expect appears
to be almost *exactly* this syntax - except that it makes the
value part ( "=" ( token / quoted-string ) ) optional. This allows
for the sending of value-less flags without having to use the
somewhat grotty flag="" construct. Perhaps adopting that syntax
verbatim would be a good idea?

Note also httpbis-p2 S3.1, "Considerations for Creating Header Fields",
particularly:

   Many header fields use a format including (case-insensitively) named
   parameters (for instance, Content-Type, defined in Section 6.8 of
   [Part3]).  Allowing both unquoted (token) and quoted (quoted-string)
   syntax for the parameter value enables recipients to use existing
   parser components.

John
--