Re: p1: HTTP(S) URIs and fragment identifiers

Zhong Yu <zhong.j.yu@gmail.com> Sat, 20 April 2013 16:41 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 28EBB21F8E74 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 09:41:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[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 4IAmu7lQ8OB4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 09:41:51 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B8C2D21F8BE4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 20 Apr 2013 09:41:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UTapu-00049l-Fn for ietf-http-wg-dist@listhub.w3.org; Sat, 20 Apr 2013 16:40:26 +0000
Resent-Date: Sat, 20 Apr 2013 16:40:26 +0000
Resent-Message-Id: <E1UTapu-00049l-Fn@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1UTapp-000495-Dh for ietf-http-wg@listhub.w3.org; Sat, 20 Apr 2013 16:40:21 +0000
Received: from mail-oa0-f41.google.com ([209.85.219.41]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1UTapo-00010t-Lc for ietf-http-wg@w3.org; Sat, 20 Apr 2013 16:40:21 +0000
Received: by mail-oa0-f41.google.com with SMTP id g12so3816679oah.28 for <ietf-http-wg@w3.org>; Sat, 20 Apr 2013 09:39:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=WLUytulWQBYncdZLszl8WgelZohC4aUwlAXxCrzNXlQ=; b=yBE1SBpv/ZY8OIygiXJxb0bOu/R+hQvlov2Y8qmgvrHUUEWw9G4vNA5OPf4Vm3gAvC 8rzAe+IljnyFHx/GbSnK/qLXtuJqXpFOmzIfj1+olj4wM1ZCveWqpqyxmsdiHiwzIkKl itwpz3+GrsDK+MGMqeUNjW4/1Coa4KCxrvuCh7fznWG63bPZt3xyOE8H+OWM6ju5oeUI BmvdKMn+C90abhUymnKXN3s1O1E7J2+f/Fuxw2xnOVzGggoEx+vKpkBkD+dGU55dnA/6 MQkQTzA2jReIs/daVRacj4uoVOFgCVw9BPI3BNnY5bDV4hKDgajHTSYgTxSQch3Zknc6 F7yw==
MIME-Version: 1.0
X-Received: by 10.60.93.74 with SMTP id cs10mr1278740oeb.21.1366475994782; Sat, 20 Apr 2013 09:39:54 -0700 (PDT)
Received: by 10.76.22.130 with HTTP; Sat, 20 Apr 2013 09:39:54 -0700 (PDT)
In-Reply-To: <D323C524-1176-46FB-ABC7-727ECA6B2FB9@mnot.net>
References: <EBBA02BC-CAAF-4CE3-807F-85D87A9D30C8@mnot.net> <517243A2.9000006@gmx.de> <AED6FBF2-724F-424B-AFC2-06A5C73F8B14@mnot.net> <51724CBB.6060300@gmx.de> <D323C524-1176-46FB-ABC7-727ECA6B2FB9@mnot.net>
Date: Sat, 20 Apr 2013 11:39:54 -0500
Message-ID: <CACuKZqG7-OBvECj8hc_usufixhUEH0ArAFANCiyOCP_eOUzZ2Q@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: Julian Reschke <julian.reschke@gmx.de>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.219.41; envelope-from=zhong.j.yu@gmail.com; helo=mail-oa0-f41.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.652, 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: lisa.w3.org 1UTapo-00010t-Lc 27487aa7afa534a4677ef705772e86ce
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p1: HTTP(S) URIs and fragment identifiers
Archived-At: <http://www.w3.org/mid/CACuKZqG7-OBvECj8hc_usufixhUEH0ArAFANCiyOCP_eOUzZ2Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17426
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>

I like Mark's idea better. In many contexts when people use the term
HTTP URI they would consider fragment a legit optional part, so the
spec should not appear to exclude it in general.

Zhong Yu

On Sat, Apr 20, 2013 at 3:16 AM, Mark Nottingham <mnot@mnot.net> wrote:
>
> On 20/04/2013, at 6:07 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
>
>> On 2013-04-20 09:30, Mark Nottingham wrote:
>>>
>>> On 20/04/2013, at 5:28 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
>>>
>>>> On 2013-04-20 06:07, Mark Nottingham wrote:
>>>>> P1 sections 2.7.1 and 2.7.2 define the HTTP and HTTPS URI schemes without fragment identifiers.
>>>>>
>>>>> While it's true that HTTP sends these URIs without fragids "on the wire" in the request-target, the schemes *do* allow fragids pretty much everywhere else they're used (including some places in HTTP, e.g., the Location header).
>>>>>
>>>>> Given that this is going to be the definition for these URI schemes, and we already require that the fragid be omitted in the request-target, shouldn't the syntax allow a fragment identifier?
>>>>
>>>> No.
>>>>
>>>> Fragment identifiers are allowed for *any* URI scheme; the scheme definition doesn't need to include it.
>>>
>>>
>>> Then why do we include query?
>>
>> Because we are defining a <http://greenbytes.de/tech/webdav/rfc3986.html#absolute-uri>.
>
>
> But this section *isn't* defining just a single protocol element; it's defining the form of HTTP URIs.
>
> I suspect the right thing to do here is to specify that HTTP(s) URIs use the path-abempty form of the hier-part, give some examples, and leave the rest of the ABNF to RFC3986 (or its successors).
>
> At any rate, I don't see the http-uri or https-uri rules actually used anywhere normatively, so I *think* this is editorial. I.e., it's on your conscience :)
>
> Cheers,
>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>