Sun Java System Web Server 6.1 SP9 Administrator's Guide

Example of a Lock Request

This example illustrates a request for an exclusive write lock on the resource /col1/myfile.html with a timeout of 500 seconds.


LOCK /col1/myfile.html HTTP/1.1
Host: sun
Content-Type: text/xml; charset=”utf-8”
Content-Length: 259
Timeout: Second-500
<?xml version=”1.0” encoding=”utf-8” ?>
<d:lockinfo xmlns:d=”DAV:”>
    <d:locktype><d:write></d:locktype>
    <d:lockscope><d:exclusive></d:lockscope>
    <d:owner>
        <d:href>http://info.sun.com/resources/info.html</d:href>
    </d:owner>
</d:lockinfo>