W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 1999

Re: Fragments in "Location" field

From: Roy T. Fielding <fielding@kiwi.ics.uci.edu>
Date: Fri, 06 Aug 1999 17:01:07 -0700
To: Rodent of Unusual Size <Ken.Coar@golux.com>
cc: http-wg@hplb.hpl.hp.com
Message-ID: <9908061701.aa08157@paris.ics.uci.edu>
>Something's come up in the CGI RFC discussion, and I'm hoping
>you can clarify.
>
>RFC 2396 contains the following bits:
>
>> absoluteURI   = scheme ":" ( hier_part | opaque_part )
>	:
>> URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
>
>but 2616 says:
>
>> Location       = "Location" ":" absoluteURI
>
>Does this mean that "Location" values cannot include fragments?

Yes.  Oops.  draft-bos-http-redirect-00.txt seems to assume a fragment
is allowed in redirects.  The HTTP syntax should be

   Location       = "Location" ":" absoluteURI [ "#" fragment ]

The CGI syntax also allows relative references, since those are interpreted
internally by the server (unlike HTTP).

....Roy
Received on Saturday, 7 August 1999 01:08:04 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:32 EDT