W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2008

bug in default base URI in "HTTP Header Linking"?

From: Dan Connolly <connolly@w3.org>
Date: Thu, 19 Jun 2008 10:48:06 -0500
To: ietf-http-wg@w3.org, Mark Nottingham <mnot@mnot.net>
Message-Id: <1213890486.11021.74.camel@pav.lan>

I was a little surprised to read:

If the relationship is a relative URI, its base URI MUST be considered
to be "http://www.iana.org/assignments/link-relations.html#",
 -- http://tools.ietf.org/id/draft-nottingham-http-link-header-01.txt

Is that really what you meant?

If we take this example from the same draft:

       Link: <http://www.cern.ch/TheBook/chapter2>; rel="Previous"

we get:

>>> import urlparse
>>> base="http://www.iana.org/assignments/link-relations.html#"
>>> urlparse.urljoin(base, "Previous")
'http://www.iana.org/assignments/Previous'

Surely that's not by design, right?



p.s. I'm not subscribed to ietf-http-wg@w3.org, so please
copy me on replies.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Thursday, 19 June 2008 15:48:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:50:48 GMT