Re: HTTP/2 examples SHOULD use :authority
Alex Rousskov <rousskov@measurement-factory.com> Thu, 01 December 2016 23:23 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 1E9711299BC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Dec 2016 15:23:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.797
X-Spam-Level:
X-Spam-Status: No, score=-9.797 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-2.896, 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 tgXMYTQDoYxN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 1 Dec 2016 15:23:22 -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 46A57129997 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 1 Dec 2016 15:23:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cCadk-0002x7-76 for ietf-http-wg-dist@listhub.w3.org; Thu, 01 Dec 2016 23:19:44 +0000
Resent-Date: Thu, 01 Dec 2016 23:19:44 +0000
Resent-Message-Id: <E1cCadk-0002x7-76@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 <rousskov@measurement-factory.com>) id 1cCadd-0002v1-Cc for ietf-http-wg@listhub.w3.org; Thu, 01 Dec 2016 23:19:37 +0000
Received: from mail.measurement-factory.com ([104.237.131.42]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <rousskov@measurement-factory.com>) id 1cCadW-0003bS-Qk for ietf-http-wg@w3.org; Thu, 01 Dec 2016 23:19:32 +0000
Received: from [65.102.233.169] (unknown [65.102.233.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.measurement-factory.com (Postfix) with ESMTPSA id 22908E05A; Thu, 1 Dec 2016 23:19:08 +0000 (UTC)
References: <4ea740d1-1df8-5a76-5198-dfd45b46955e@measurement-factory.com> <CABkgnnW5NSHEsv4NG_R4wf96SMc--vBkJ=zjG1QsUHJ9-6FyFA@mail.gmail.com>
Cc: Martin Thomson <martin.thomson@gmail.com>
From: Alex Rousskov <rousskov@measurement-factory.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <3a933ef3-922e-6b83-e379-b7efbb968242@measurement-factory.com>
Date: Thu, 01 Dec 2016 16:19:03 -0700
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <CABkgnnW5NSHEsv4NG_R4wf96SMc--vBkJ=zjG1QsUHJ9-6FyFA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=104.237.131.42; envelope-from=rousskov@measurement-factory.com; helo=mail.measurement-factory.com
X-W3C-Hub-Spam-Status: No, score=-6.3
X-W3C-Hub-Spam-Report: AWL=0.448, BAYES_00=-1.9, RP_MATCHES_RCVD=-2.896, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cCadW-0003bS-Qk 82516e5dbf41df612f32475174c3f3ae
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2 examples SHOULD use :authority
Archived-At: <http://www.w3.org/mid/3a933ef3-922e-6b83-e379-b7efbb968242@measurement-factory.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33072
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 12/01/2016 04:08 PM, Martin Thomson wrote: > There was a long discussion about this and the ultimate conclusion was > to recommend :authority over host. However that never made the > examples section. > > We did not mandate use of :authority so that proxies and gateways > could provide perfect fidelity in their translation from 1.1 to 2. Yes, I suspect I have read most of that [enlightening!] discussion before posting here and probably understand the origins of these problems. > If you interpret the examples as conversions, then they are correct in > that the fidelity is preserved (as Kari points out). However, I don't > believe that to be the primary purpose of examples in this > specification. > > If we were able to make a change, I would indeed change the examples > to use :authority, but include a note that said that - in the case of > a direct conversion from 1.1 - "host" would be used instead. I believe we are on the same page. If there is a consensus that this problem deserves an errata, I would be happy to propose a specific change. Otherwise, this email thread itself may help those confused by the examples. Thank you, Alex. > On 2 December 2016 at 03:54, Alex Rousskov > <rousskov@measurement-factory.com> wrote: >> Hello, >> >> This question is inspired be an interoperability problem between Web >> Polygraph benchmark and a [MitM] HTTP/2 proxy. Inside a CONNECT tunnel >> to a Polygraph server, Polygraph clients were violating the following >> RFC 7540 SHOULD by sending a Host header instead of the :authority >> pseudo-header: >> >>> Clients >>> that generate HTTP/2 requests directly SHOULD use the ":authority" >>> pseudo-header field instead of the Host header field. >> >> >> When forwarding the requests, the proxy dropped the Host header without >> adding :authority... While investigating who is at fault, I noticed that >> Polygraph [accidentally] follows RFC 7540 examples: *All* Section 8.3 >> examples show HTTP/2 requests with a Host header instead of :authority! >> >>> GET /resource HTTP/1.1 HEADERS >>> Host: example.org ==> + END_STREAM >>> Accept: image/jpeg + END_HEADERS >>> :method = GET >>> :scheme = https >>> :path = /resource >>> host = example.org >>> accept = image/jpeg >> >> >> One could argue that the RFC examples are meant to illustrate how to >> mechanically translate an HTTP/1 message to HTTP/2, with as little >> information loss as possible, even at the expense of violating a SHOULD. >> I do not think that is a valid argument because the Examples section >> does not disclose that intent and most readers will expect the [only] >> Example section to illustrate genuine HTTP/2 messages rather than >> unusual HTTP version translation peculiarities (unless explicitly noted >> otherwise). >> >> AFAICT, the Examples section talks about and shows various generated >> HTTP/2 messages that meet version-agnostic prose specifications. The >> HTTP/1 messages are probably also included just because most [early] RFC >> readers were expected to be more familiar with HTTP/1 than HTTP/2. >> >> Do you think the RFC examples should use ":authority" instead of "host"? >> >> >> Thank you, >> >> Alex. >>
- HTTP/2 examples SHOULD use :authority Alex Rousskov
- Re: HTTP/2 examples SHOULD use :authority Kari Hurtta
- Re: HTTP/2 examples SHOULD use :authority Alex Rousskov
- Re: HTTP/2 examples SHOULD use :authority Martin Thomson
- Re: HTTP/2 examples SHOULD use :authority Alex Rousskov
- Re: HTTP/2 examples SHOULD use :authority Martin Thomson