Application of WebDAV in kooboo CMS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.