Re: Base URLs

David Robinson <drtr1@cam.ac.uk> Thu, 09 February 1995 20:32 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa08074; 9 Feb 95 15:32 EST
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa08070; 9 Feb 95 15:32 EST
Received: from services.Bunyip.COM by CNRI.Reston.VA.US id aa13275; 9 Feb 95 15:32 EST
Received: (from daemon@localhost) by services.bunyip.com (8.6.9/8.6.9) id OAA09035 for uri-out; Thu, 9 Feb 1995 14:33:54 -0500
Received: from mocha.bunyip.com (mocha.Bunyip.Com [192.197.208.1]) by services.bunyip.com (8.6.9/8.6.9) with SMTP id OAA09026 for <uri@services.bunyip.com>; Thu, 9 Feb 1995 14:33:42 -0500
Received: from bootes.cus.cam.ac.uk by mocha.bunyip.com with SMTP (5.65a/IDA-1.4.2b/CC-Guru-2b) id AA08618 (mail destined for uri@services.bunyip.com) on Thu, 9 Feb 95 14:33:19 -0500
Received: from grus.cus.cam.ac.uk [131.111.8.3] (ident = root) by bootes.cus.cam.ac.uk with smtp (Smail-3.1.29.0 #24) id m0rceah-000BzwC; Thu, 9 Feb 95 19:31 GMT
Received: by grus.cus.cam.ac.uk (Smail-3.1.29.0 #11) id m0rceah-0007aQC; Thu, 9 Feb 95 19:31 GMT
Message-Id: <m0rceah-0007aQC@grus.cus.cam.ac.uk>
Date: Thu, 09 Feb 1995 19:31:00 +0000
To: rtor@ansa.co.uk
Subject: Re: Base URLs
Cc: drtr1@cam.ac.uk, uri@bunyip.com
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: David Robinson <drtr1@cam.ac.uk>
X-Orig-Sender: owner-uri@bunyip.com
Precedence: bulk

>In draft-ietf-uri-relative-url-05.txt, "within Document Content" (3.1)
>overrides "within Message Headers" (3.2). Is there a reason for this order? I
>can think of reasons for putting these two the other way round, but not for
>this order.

To my mind, a base URL defined within Message Headers is a base URL for
other URLs within the _headers_. For documents which cannot or do not
contain a base URL, then it is reasonable for the document to inherit
any base URL defined in message headers. However, the semantics of the
document should not be changed simply by ecapsulating it in the headers
of a transport protocol. Especially as the document will usually be opaque
to the transport system.

A specific example: WWW-Authenticate: response headers. The current HTTP spec
defines the base URL for these headers to be the URL of the requested
resource. I would prefer the server to be able to choose the base URL with
a Base: header without always altering the base URL for the document.

So, in fact, I would prefer a completely different interpretation than given
in 3.1/3.2:

1. The base URL is found from the document content. for an HTML document,
   it is as given in Appendix 10.  For documents which are RFC 822 style
   messages, the base URL is as given by the Base: header.

2. Otherwise, the base URL of the document is the base URL of the document
   which encloses this document.

3. Otherwise the base URL of a document (not enclosed in any other) is defined
   by the context in which it is retrieved; i.e. its URL.

Reading the relative URL draft further, I find that it gives this
interpretation in 3.3 para 2 (but to MIME documents). Why distinguish message
headers from other retrieval contexts?

 David Robinson. (drtr1@cam.ac.uk)