Re: URI path starting with "//"

Karl Dubost <karl@la-grange.net> Mon, 04 February 2013 21:49 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 CC35D21F8AB7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Feb 2013 13:49:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -11.266
X-Spam-Level:
X-Spam-Status: No, score=-11.266 tagged_above=-999 required=5 tests=[AWL=-0.667, BAYES_00=-2.599, 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 8iiZkpv-eq61 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 4 Feb 2013 13:49:25 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2327D21F8A71 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 4 Feb 2013 13:49:24 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U2TtU-0002Jr-BV for ietf-http-wg-dist@listhub.w3.org; Mon, 04 Feb 2013 21:48:04 +0000
Resent-Date: Mon, 04 Feb 2013 21:48:04 +0000
Resent-Message-Id: <E1U2TtU-0002Jr-BV@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <karl@la-grange.net>) id 1U2TtP-0002JC-7d for ietf-http-wg@listhub.w3.org; Mon, 04 Feb 2013 21:47:59 +0000
Received: from nerval.la-grange.net ([128.30.54.58]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <karl@la-grange.net>) id 1U2TtO-0006i3-Eb for ietf-http-wg@w3.org; Mon, 04 Feb 2013 21:47:59 +0000
Received: from [127.0.0.1] (nerval.la-grange.net [128.30.54.58]) by nerval.la-grange.net (8.14.5/8.14.5) with ESMTP id r14Ll1oi040378 for <ietf-http-wg@w3.org>; Mon, 4 Feb 2013 16:47:01 -0500 (EST) (envelope-from karl@la-grange.net)
References: <CACuKZqHi6gBmd-khrW-_7febxoh-pNd4hzfyA4EgRNKQ4ivWog@mail.gmail.com> <510C101D.9030005@gmx.de> <f64og85ot2qe13optqqqp9nuvps8mgcnsp@hive.bjoern.hoehrmann.de> <510C26F3.6010301@gmx.de> <93E3B5CE-A778-4C5D-ACDB-09B22860CE07@gbiv.com> <CAMm+LwgDLmgA9qka0wk_J+jxqVHnPgNK9=FZZvnMdUBzyFPAiw@mail.gmail.com>
In-Reply-To: <CAMm+LwgDLmgA9qka0wk_J+jxqVHnPgNK9=FZZvnMdUBzyFPAiw@mail.gmail.com>
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="windows-1252"
Message-Id: <C86157F8-AF2C-4857-923D-F777017CC0AA@la-grange.net>
Content-Transfer-Encoding: quoted-printable
From: Karl Dubost <karl@la-grange.net>
Date: Mon, 04 Feb 2013 16:47:57 -0500
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1283)
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-2.887, RP_MATCHES_RCVD=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1U2TtO-0006i3-Eb 8910e44f8fd6009bcec5e5a1b23ff969
X-Original-To: ietf-http-wg@w3.org
Subject: Re: URI path starting with "//"
Archived-At: <http://www.w3.org/mid/C86157F8-AF2C-4857-923D-F777017CC0AA@la-grange.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16363
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>

Another benefit in Web projects specifically between testing environment and production to be able to not have to take care of http or https

https://example.org/
http://example.org/

Instead you would just write 

//example.org

See for example http://paulirish.com/2010/the-protocol-relative-url/

-- 
Karl Dubost, a Web opener to hire
http://www.la-grange.net/karl/