W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > July to September 2001

RE: Getcontentlength & GetContentType

From: Dylan Barrell <dbarrell@opentext.com>
Date: Mon, 27 Aug 2001 10:35:36 -0400
To: "Rickard Falk" <rickard.falk@excosoft.se>, <w3c-dist-auth@w3.org>
Message-ID: <NEBBIBDBCLDPAGPIKGMCIEMLEAAA.dbarrell@opentext.com>
GET on a collection is not covered by DAV. You want to get the contents of a
collection, then do a PROPFIND.

You therefore don't have to maintain those proprties for collections (they
also don't make sense).

--Dylan

> -----Original Message-----
> From: w3c-dist-auth-request@w3.org
> [mailto:w3c-dist-auth-request@w3.org]On Behalf Of Rickard Falk
> Sent: Monday, August 27, 2001 9:53 AM
> To: w3c-dist-auth@w3.org
> Subject: Getcontentlength & GetContentType
>
>
> What should I respond if a client asks for the properties
> Getcontentlength or GetContentType on a collection?
> The spec states:
> "The getcontentlength property MUST be defined on any
>    DAV compliant resource that returns the Content-Length header in
>    response to a GET."
>
> But it doesn't say, if the value a supposed to be the same as if
> I perform a 'Get' on that url. The collection itself doesn't
> normally have a content, so does this mean that if the collection
> have a default page. That it should return the values of that
> page? Or if the server is set to send a generated HTML page
> listing the children, should the values be text/html and the size
> of that page?
>
> Or have I missed something in the spec?
>
> /Rickard Falk
Received on Monday, 27 August 2001 10:36:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:56 GMT