[10638] in www-talk@info.cern.ch
Re: Content-Base response header
daemon@ATHENA.MIT.EDU (Dave Ingham)
Fri Feb 21 11:51:34 1997
From: Dave Ingham <Dave.Ingham@newcastle.ac.uk>
To: frystyk@w3.org (Henrik Frystyk Nielsen)
Date: Fri, 21 Feb 1997 16:40:22 +0000 (GMT)
Cc: www-talk@w3.org
In-Reply-To: <3.0.1.32.19970221111759.0099ea10@pop.w3.org> from "Henrik Frystyk Nielsen" at Feb 21, 97 11:17:59 am
Resent-From: www-talk@w3.org
Henrik said:
> At 03:28 PM 2/21/97 +0000, Dave Ingham wrote:
> >Does anyone know if any browsers support Content-Base headers with
> >HTTP/1.0 requests? I have tried a number of experiments with no success.
>
> If you are looking for an example of how to do it then libwww follows the
> rules set in the HTTP/1.1 specification in handling URL expansion. The
> algorithm goes like this
>
> if ( Content-Base ) /* Must be absolute */
> base = Content-Base
> else if ( Content-Location ) /* Can be relative or absolute */
> if ( Content-Location is absolute)
> base = Content-Location
> else
> base = Request-URI /* Must be absolute */
> endif
> endif
>
> expanded = URL taken relative to base
>
> Content-base can be changed in the HTML document itself in which case you
> just run the algorithm again.
Thanks for your explanation which confirmed my understanding of how
Content-Base should be processed.
In particular my problem is trying to use Content-Base in an
application. I have tried generating several different formats but
none of the popular browsers I've tested the application with pay any
attention to the header (however, most do understand the HTML tag
<BASE HREF=...>.)
Examples of The formats I've tried are:
Base: <URL:http://arjuna.ncl.ac.uk/> as per RFC1808
Content-Base: http://arjuna.ncl.ac.uk/ as per HTTP/1.1 spec
Content-Base: http://arjuna.ncl.ac.uk/summary.html
Does anyone know if any popular browsers support Content-Base headers?
Cheers
Dave.
-----------------------------------------------------------------------------
David Ingham (Research Associate) PHONE: 0191 222 8067
Department of Computing Science, FAX: 0191 222 8232
The University, URL: http://www.cs.ncl.ac.uk/~dave.ingham
Newcastle upon Tyne, NE1 7RU, EMAIL: Dave.Ingham@ncl.ac.uk
United Kingdom or Dave.Ingham@iee.org
-----------------------------------------------------------------------------