3.1.5.4 Adding Lock Headers to Existing Commands

The WebDAV Protocol locking semantics and processing orders, as specified in [RFC4918] section 8.10, are not altered by the WebDAV Protocol: Client Extensions. These extensions simply allow for fewer requests to be sent to the WebDAV server.

The LOCK headers SHOULD be added to the commands that read and write data from the WebDAV server when locking semantics are required. On read operations (GET or POST), the LOCK MAY be requested, refreshed, or unlocked. On write operations (PUT), the LOCK header that has the lock token SHOULD be added to successfully complete the operation.

The WebDAV client SHOULD add the LOCK extension headers only when it communicates with a server that supports these extensions.<18>