Re: Fragments in "Location" field
Roy T. Fielding (fielding@kiwi.ics.uci.edu)
Fri, 06 Aug 1999 17:01:07 -0700
>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