W3C home > Mailing lists > Public > uri@w3.org > January 2006

Re: http-urls style, trailing slash and webdav

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 26 Jan 2006 13:43:15 +0100
Message-ID: <43D8C3E3.9020200@gmx.de>
To: Reto Bachmann-Gmür <reto@gmuer.ch>
CC: uri@w3.org

Reto Bachmann-Gmür wrote:
> Hello
> I'm not sure if this is the right list - please redirect me if there is 
> a more appropriate forum.
> I was looking for recommendations about the use of trailing slashes in 
> http-urls,my opinion was, that is better style not to terminate the URLs 
> with a slash as
>    * It is unclear if a resources will once have subcategories (on
>      wymiwyg.org "/knobot" has the subcategory "/knobot/development"
>      while "/rdf-utils" hasn't yet a subcategory
>    * The alternative, terminating all URLs with slash would lead to
>      ugly URLs when an extension to force a content-type is added (like
>      "bla/.rdf") and leads to unintuitive names when downloading
>      resources (such as with wget)
> So currently I my server answers like this:
> http://wymiwyg.org/knobot -> 200 Success
> http://wymiwyg.org/knobot/ -> 404 Not found
> http://wymiwyg.org/knobot/development -> 200 Success
> However implementing support for webdav all the clients I tested at 
> least occasionally requested a collection without trailing slash, even 
> if was referenced with slash in the containing collection, this makes it 
> impossible to have two differen resource at http://wymiwyg.org/knobot (a 
> GET-dereferencable resource) and http://wymiwyg.org/knobot/ (a 
> dav:collection). It seems that the expected behavior is  that an URL 
> with removed trailing slash either causes the same server response or a 
> redirect to the resource with trailing slash.

Yes. So why don't you just make it one resource that is both a 
DAV:collection and has GETtable content?

> ...

Best regards, Julian
Received on Thursday, 26 January 2006 12:45:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:09 UTC