RFC 2518 WEBDAV February 1999
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:">
http://webdav.sb.aol.com/webdav/secret
HTTP/1.1 403 Forbidden
</D:response>
http://webdav.sb.aol.com/webdav/
<D:lockdiscovery/>
HTTP/1.1 424 Failed Dependency
</D:propstat>
</D:response>
</D:multistatus>
This example shows a request for an exclusive write lock on a
collection and all its children. In this request, the client has
specified that it desires an infinite length lock, if available,
otherwise a timeout of 4.1 billion seconds, if available. The request
entity body contains the contact information for the principal taking
out the lock, in this case a web page URL.
The error is a 403 (Forbidden) response on the resource
http://webdav.sb.aol.com/webdav/secret. Because this resource could
not be locked, none of the resources were locked. Note also that the
lockdiscovery property for the Request-URI has been included as
required. In this example the lockdiscovery property is empty which
means that there are no outstanding locks on the resource.
In this example, the nonce, response, and opaque fields have not been
calculated in the Authorization request header.
8.11 UNLOCK Method
The UNLOCK method removes the lock identified by the lock token in
the Lock-Token request header from the Request-URI, and all other
resources included in the lock. If all resources which have been
locked under the submitted lock token can not be unlocked then the
UNLOCK request MUST fail.
Any DAV compliant resource which supports the LOCK method MUST
support the UNLOCK method.
RFC 2518 WEBDAV February 1999
8.11.1 Example - UNLOCK
>>Request
UNLOCK /workspace/webdav/info.doc HTTP/1.1
Host: webdav.sb.aol.com
Lock-Token: <opaquelocktoken:a515cfa4-5da4-22e1-f5b5-00a0451e6bf7>
Authorization: Digest username="ejw",
realm="ejw@webdav.sb.aol.com", nonce="...",
uri="/workspace/webdav/proposal.doc",
response="...", opaque="..."
>>Response
HTTP/1.1 204 No Content
In this example, the lock identified by the lock token
"opaquelocktoken:a515cfa4-5da4-22e1-f5b5-00a0451e6bf7" is
successfully removed from the resource
http://webdav.sb.aol.com/workspace/webdav/info.doc. If this lock
included more than just one resource, the lock is removed from all
resources included in the lock. The 204 (No Content) status code is
used instead of 200 (OK) because there is no response entity body.
In this example, the nonce, response, and opaque fields have not been
calculated in the Authorization request header.
9 HTTP Headers for Distributed Authoring
9.1 DAV Header
DAV = "DAV" ":" "1" ["," "2"] ["," 1#extend]
This header indicates that the resource supports the DAV schema and
protocol as specified. All DAV compliant resources MUST return the
DAV header on all OPTIONS responses.
The value is a list of all compliance classes that the resource
supports. Note that above a comma has already been added to the 2.
=29= |