Clarence (Andreas M. Schneider) wrote:
> Andreas Otte wrote:
>
[...]
>>2. RFC 2396 versus RFC 1808
>>
> [...]
>
>>Given a base url like: "http://www.foo.bar/path/file;param?query#ref"
>>
>>and the following relative urls with RFC 1808 result in:
>>
>>";param2" "http://www.foo.bar/path/file;param2" (5.1)
>>"?query2" "http://www.foo.bar/path/file;param?query2" (5.1)
>>"" "http://www.foo.bar/path/file;param?query#ref" (5.2)
>>
>>and with RFC 2396 result in:
>>
>>";param2" "http://www.foo.bar/path/;param2" (C.1)
>>"?query2" "http://www.foo.bar/path/?query2" (C.1)
>>"" "http://www.foo.bar/path/file" (C.2)
>>
>
> The last line seems to be wrong. As I understand RFC 2396 (4.2)
> it would be
> "" "http://www.foo.bar/path/file;param?query#"
> (top of the document).
After rereading the rfcs, I think you may be right.
RFC 1808 says:
An empty reference resolves to the complete base URL:
<> = <URL:http://a/b/c/d;p?q#f>
RFC 2396 says:
An empty reference refers to the start of the current document.
<> = (current document)
and that would be "http://www.foo.bar/path/file;param?query#"
or "http://www.foo.bar/path/file;param?query" which are equivalent.
But after reading Miles comments I'm not sure sure on any of the
examples in RFC 2396 anymore.
Andreas