Re: HTTP URI in the form of "http://example.com?query"

Roberto Peon <grmocg@gmail.com> Tue, 04 June 2013 08:39 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 0F6CB21F85F4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 4 Jun 2013 01:39:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.597
X-Spam-Level:
X-Spam-Status: No, score=-10.597 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HS_INDEX_PARAM=0.001, HTML_MESSAGE=0.001, 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 EEZFm6uRDRK0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 4 Jun 2013 01:39:12 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DFCB621F9B15 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 4 Jun 2013 00:35:32 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UjllC-0005gI-GB for ietf-http-wg-dist@listhub.w3.org; Tue, 04 Jun 2013 07:34:26 +0000
Resent-Date: Tue, 04 Jun 2013 07:34:26 +0000
Resent-Message-Id: <E1UjllC-0005gI-GB@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Ujll0-0005e1-6I for ietf-http-wg@listhub.w3.org; Tue, 04 Jun 2013 07:34:14 +0000
Received: from mail-ob0-f180.google.com ([209.85.214.180]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Ujlkq-00005e-QN for ietf-http-wg@w3.org; Tue, 04 Jun 2013 07:34:08 +0000
Received: by mail-ob0-f180.google.com with SMTP id eh20so8661326obb.39 for <ietf-http-wg@w3.org>; Tue, 04 Jun 2013 00:33:38 -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=3lL/wgNJ7ZUzYSpcnOzl0F222TpT6lhQ4U/ptq7dPDs=; b=VrFCDFaAm7Ia7ialuz2siewpmcEEJQ8CJ0VTpoPwK6bt1quAF0gXcdbwb4tSnsHnzY qg1dJxHT66CN3f9RMeC3s+/T8Hi+zCqX7ctr5swNSrykaSHxS0aHhdBl0jOkatNTarbe GbtGKd34tlZdA92PDOmG3de4miII5n5QThpdwe6TW/FCswt2jF4iCXmnbkYkDwSKSGff EkJ1A3AOP8i14dsdbYMZQWRwFlbq51E2tGu0OCi1+9meZMmi784xpUhQ5VigVHBchi5g 64FEOW+ufvXAF+6iZk5mjMo7/ODOGv/s8nuiM6uGiX/n5Li9EAA16yBdjHDuuZT5LclM 4jog==
MIME-Version: 1.0
X-Received: by 10.60.59.163 with SMTP id a3mr11907142oer.45.1370331218740; Tue, 04 Jun 2013 00:33:38 -0700 (PDT)
Received: by 10.76.169.68 with HTTP; Tue, 4 Jun 2013 00:33:38 -0700 (PDT)
In-Reply-To: <51AD8EC1.4010608@gmx.de>
References: <CACuKZqFvFo2ztDBZwMVtSE54rvHthyJJc-8X-yFq=CSVMy9GXw@mail.gmail.com> <51AD8EC1.4010608@gmx.de>
Date: Tue, 04 Jun 2013 00:33:38 -0700
Message-ID: <CAP+FsNd3mWAtQ_Fn_Kvtx28300SO761fEZBhnm9NrHv_WQ2BjQ@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e013d0818848cb704de4f1944"
Received-SPF: pass client-ip=209.85.214.180; envelope-from=grmocg@gmail.com; helo=mail-ob0-f180.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.738, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Ujlkq-00005e-QN 9b8c404c8f4937179525a42abf705e00
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP URI in the form of "http://example.com?query"
Archived-At: <http://www.w3.org/mid/CAP+FsNd3mWAtQ_Fn_Kvtx28300SO761fEZBhnm9NrHv_WQ2BjQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18167
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>

It seems less likely to be parsed correctly without the slash-- I know of
many regexps which will fail to correctly parse the example above.
-=R



On Mon, Jun 3, 2013 at 11:52 PM, Julian Reschke <julian.reschke@gmx.de>wrote:

> On 2013-06-04 01:04, Zhong Yu wrote:
>
>> The question is whether this is a valid HTTP URI:
>>
>>      http://example.com?query
>>
>> According to RFC2616, it is invalid, a slash before the question mark
>> is mandatory(i.e. http://example.com/?query)
>>
>> According to the latest bis draft, it is valid. The draft adopts the
>> generic URI syntax of RFC, which permits this kind of URI.
>>
>> Any reason for this spec change? It seems risky; some old programs may
>> not be able to accept such URIs.
>> ...
>>
>
> And then, others do.
>
> Do you have any evidence of things breaking?
>
> In general, I prefer consistency in edge cases like these.
>
> Best regards, Julian
>
>