Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
http://www.foo.bar/container/
<prop xmlns:R="http://www.foo.bar/boxschema/">
<creationdate/>
<displayname/>
<resourcetype/>
<supportedlock/>
HTTP/1.1 200 OK
http://www.foo.bar/container/front.html
RFC 2518 WEBDAV February 1999
<prop xmlns:R="http://www.foo.bar/boxschema/">
<creationdate/>
<displayname/>
<getcontentlength/>
<getcontenttype/>
<getlastmodified/>
<resourcetype/>
<supportedlock/>
HTTP/1.1 200 OK
</multistatus>
In this example, PROPFIND is invoked on the collection resource
http://www.foo.bar/container/, with a propfind XML element containing
the propname XML element, meaning the name of all properties should
be returned. Since no Depth header is present, it assumes its
default value of "infinity", meaning the name of the properties on
the collection and all its progeny should be returned.
Consistent with the previous example, resource
http://www.foo.bar/container/ has six properties defined on it,
http://www.foo.bar/boxschema/bigbox,
http://www.foo.bar/boxschema/author, DAV:creationdate,
DAV:displayname, DAV:resourcetype, and DAV:supportedlock.
The resource http://www.foo.bar/container/index.html, a member of the
"container" collection, has nine properties defined on it,
http://www.foo.bar/boxschema/bigbox, DAV:creationdate,
DAV:displayname, DAV:getcontentlength, DAV:getcontenttype,
DAV:getetag, DAV:getlastmodified, DAV:resourcetype, and
DAV:supportedlock.
This example also demonstrates the use of XML namespace scoping, and
the default namespace. Since the "xmlns" attibute does not contain
an explicit "shorthand name" (prefix) letter, the namespace applies
by default to all enclosed elements. Hence, all elements which do
not explicitly state the namespace to which they belong are members
of the "DAV:" namespace schema.
RFC 2518 WEBDAV February 1999
8.2 PROPPATCH
The PROPPATCH method processes instructions specified in the request
body to set and/or remove properties defined on the resource
identified by the Request-URI.
All DAV compliant resources MUST support the PROPPATCH method and
MUST process instructions that are specified using the
propertyupdate, set, and remove XML elements of the DAV schema.
Execution of the directives in this method is, of course, subject to
access control constraints. DAV compliant resources SHOULD support
the setting of arbitrary dead properties.
The request message body of a PROPPATCH method MUST contain the
propertyupdate XML element. Instruction processing MUST occur in the
=17= |