The WebDAV protocol is extended based on the HTTP 1.1 protocol. It adds PROPFIND, proppatch, mkcol, copy, move, lock, and, unlock and other new request methods to make the applicationProgramYou can directly read and write web server files. The Protocol definition also includes file locking, unlocking, version control, and other methods.
In IIS, the support for the WebDAV protocol is included. You only need to enable the WebDAV extension, that is, you can use the webDAV client (Windows resource manager) and other file services to connect to the site, directly operate on files on the site. This kind of WebDAV that is dragged by IIS to perform file operations may not be used by many people at present, because it cannot be well guaranteed in terms of security. Some files that do not want to be controlled by users cannot be blocked, and program intervention cannot be performed.
However, as some standard and open protocols, we can use this Protocol to implement WebDAV request response based on program requirements to provide the WebDAV service, use the standard webDAV client to facilitate the maintenance of website content.
In kooboo CMS, there is a kind of content called binary content, which is actually the file content. In kooboo, both structured content and non-text file content are managed and maintained as common content. The file content can be referenced by text content and used as an attachment, for example, as an album. The maintenance of file content is generally very simple, you only need to upload files, but on the web interface can not achieve batch upload and drag upload. By implementing the WebDAV protocol, we can maintain the file content through the webDAV client to improve user experience.
In terms of implementation, we do not need to develop a WebDAV framework by ourselves. Here we already have an open-source implementation of the WebDAV protocol: WebDAV. NET Server framework. In this framework, we have already handled the underlying request of the protocol. We only need to process the application logic.
For more information about how to use WebDAV in kooboo CMS, see http://www.kooboo.com/documents/detail/webdavand kooboo CMS source code.
Related links:
Http://baike.baidu.com/view/974023.htm? Fr = ala0_1_1
Http://www.webdav.org/specs/rfc4918.html