Re: Fragments in "Location" field

>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 Friday, 6 August 1999 17:10:43 UTC