Re: The use of binary data in any part of HTTP 2.0 is not good

Mark Nottingham <mnot@mnot.net> Sun, 20 January 2013 23:05 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 1BC8B21F8804 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 20 Jan 2013 15:05:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.85
X-Spam-Level:
X-Spam-Status: No, score=-7.85 tagged_above=-999 required=5 tests=[AWL=-0.150, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZCOHlgsZqd4V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 20 Jan 2013 15:05:11 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8C41321F857D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 20 Jan 2013 15:05:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tx3wN-00031N-2N for ietf-http-wg-dist@listhub.w3.org; Sun, 20 Jan 2013 23:04:39 +0000
Resent-Date: Sun, 20 Jan 2013 23:04:39 +0000
Resent-Message-Id: <E1Tx3wN-00031N-2N@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tx3wI-00030i-DR for ietf-http-wg@listhub.w3.org; Sun, 20 Jan 2013 23:04:34 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tx3wH-00087S-Dh for ietf-http-wg@w3.org; Sun, 20 Jan 2013 23:04:34 +0000
Received: from mnot-mini.mnot.net (unknown [118.209.240.13]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 206E422E1FA; Sun, 20 Jan 2013 18:04:10 -0500 (EST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAA4WUYhkVBRAyY1O32aOiWB8=46SBidFOjKH+e7PGbB7mKzmiQ@mail.gmail.com>
Date: Mon, 21 Jan 2013 10:04:08 +1100
Cc: Pablo <paa.listas@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <DC03C924-9DCC-45CE-B9DB-5906EADAF9C4@mnot.net>
References: <CAAZO4q4vEiYhH5FaX2XCxXox9jkf4dLTy8coQZiE+CYHA-QzBg@mail.gmail.com> <CAA4WUYhkVBRAyY1O32aOiWB8=46SBidFOjKH+e7PGbB7mKzmiQ@mail.gmail.com>
To: "William Chan (陈智昌)" <willchan@chromium.org>
X-Mailer: Apple Mail (2.1499)
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=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.309, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tx3wH-00087S-Dh 768d6c33045524680ce0b00155d2d94a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: The use of binary data in any part of HTTP 2.0 is not good
Archived-At: <http://www.w3.org/mid/DC03C924-9DCC-45CE-B9DB-5906EADAF9C4@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16049
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>

In one of our recent meetings, one of the grey-bearded IETF old-timers (I forget which, sorry) said that a textual-protocol was a nice-to-have, but that it shouldn't be a determining factor in design. 

I.e., if you can get everything you need out of a protocol, *and* make it textual, do so, but if it detracts from the value you get from it, don't let that constrain you.

FWIW, I think that's a good rule of thumb. However, this means that the community is going to need *excellent* tooling for analysing, debugging, etc. HTTP traffic; and I don't just mean a Wireshark plugin!

Cheers,


On 21/01/2013, at 9:36 AM, William Chan (陈智昌) <willchan@chromium.org> wrote:

> There are many advantages to using binary data. If you would like a
> textual representation of a protocol, I advise using a utility to
> generate one for you.
> 
> On Sun, Jan 20, 2013 at 2:20 PM, Pablo <paa.listas@gmail.com> wrote:
>> Hello,
>> 
>>   I have readed this document
>> http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft1 today [1].
>> 
>> I just wanted to say that I think that the use of any binary data (framing,
>> header compression, etc.) in any place of the "header" part of HTTP protocol
>> is not good; so, please only use plaintext for HTTP 2.0 because, otherwise,
>> that will make very difficult to "see" the headers's protocol :)
>> 
>> Thats all,
>> Thanks for reading this few lines, sorry for my basic English, and I hope
>> that you can re-think all this of using binary data in any part of HTTP X.X
>> (ej: session layer).
>> 
>> 
>> [1] I started knowing about HTTP 2.0 here:
>> http://webscannotes.com/2012/10/09/http-2-0-officially-in-the-works/
>> 
> 

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