UNLOCK http://localhost/digestdav/sample.txt HTTP/1.1 Host: localhost User-Agent: cadaver/0.22.3 neon/0.25.5 Connection: TE TE: trailers Lock-Token: <opaquelocktoken:88b89612-42f8-da11-a875-00c09fda2406> Authorization: Digest username="admin", realm="WebDAV Repository", nonce="lH7X/9cVBAA=6f52d718e590fa52b2a1bebc8f10b80e7ff5ff98", uri="http://localhost/digestdav/sample.txt", response="f48d1162f7a5a3ca43d889aabb7f0b73", algorithm="MD5", cnonce="35e85c14ff49b98c006fd5f39fe93fff", nc=00000006, qop="auth"
The Lock-Token header contains the opaque locktoken and if it matches, the resource will be successfully locked with a 204 No Content response:
HTTP/1.1 204 No Content Date: Sat, 10 Jun 2006 05:29:32 GMT Server: Apache/2.2.2 (FreeBSD) mod_ssl/2.2.2 OpenSSL/0.9.7e-p1 DAV/2 SVN/1.3.1 mod_jk/1.2.15 Authentication-Info: rspauth="9049098842761b98fd506e6cd8e06610", cnonce="35e85c14ff49b98c006fd5f39fe93fff", nc=00000006, qop=auth Content-Length: 0 Content-Type: text/plainIf the token does not match, this means that the client does not posses the lock and the resource is not unlocked and a 400 Bad Request response is returned:
HTTP/1.1 400 Bad Request
Date: Sat, 10 Jun 2006 05:45:08 GMT
Server: Apache/2.2.2 (FreeBSD) mod_ssl/2.2.2
OpenSSL/0.9.7e-p1 DAV/2 SVN/1.3.1 mod_jk/1.2.15
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could
not understand.<br />
</p>
</body>
</html>