When you connect to the internet, HTTP lets you view webpages and interact with them by following hyperlinks. If pages are shared documents or on a wiki, you can edit them. Other pages are read-only for most users. HTTP can’t edit those, which is where WebDAV comes in. We’re going to explain what WebDAV is in the rest of the article.
You can use WebDAV to collaborate with others on files hosted on remote servers, access your cloud storage and web hosting service from a single app if they support it, transfer files and feel awesome that you know how to use such a techie protocol.
While WebDAV is meant for remote file editing and manipulation, it can also transfer files. If you’re not tech savvy and want a more user-friendly option, read our articles on how to share files online, sharing with Google Drive and sharing via Dropbox.
What Is WebDAV?
Web Distributed Authoring and Versioning is an extension to HTTP that lets clients edit remote content on the web. In essence, it enables a web server to act as a file server, allowing authors to collaborate on web content.
WebDAV enriches the standard set of HTTP headers and methods to let you create, move, edit files and delete or copy files and folders. As an extension to HTTP, it usually uses port 80 for plain, unencrypted access and port 443 if you use SSL/TLS.
File access and manipulation are familiar to many users, but tracking revisions is not. Revisions are part of a versioning system that was added to WebDAV after it was defined in the Delta-V extension. WebDAV servers are split into two categories based on it: Class 1 and Class 2.
Class 1 servers provide you with basic management features, such as create, copy, move and delete for files and folders. You can perform those actions on custom properties for files and folders, too. Many clients treat Class 1 servers as read-only because they can’t protect files from simultaneous modifications. Without that, they can’t be used for real-world apps.
Class 2 WebDAV servers can prevent such modifications, though, because they can lock files and many WebDAV clients including Microsoft’s Office and Web Folder apps, Mac OS X WebDAV and OpenOffice require it.
WebDAV is the foundation for other protocols, including CalDAV and CardDAV. CalDAV lets a client access scheduling information on a remote server, while CardDAV is an address book protocol that lets users access and share contact data on a server.
History of WebDAV
Tim Berners-Lee created the World Wide Web and the web browser called WorldWideWeb. It was different from today’s browsers because it could not only view webpages, it could also edit them. As the web grew, it became a read-only medium for most.
A group of people, including Jim Whitehead, who received a doctorate from the University of California, Irvine, wanted to overcome that limitation. To do that, Whitehead organized a meeting with members of the World Wide Web Consortium in 1996 to discuss the problem of authoring on the web.
The protocol was first defined in RFC 2518 and didn’t include versioning because it was thought that doing both would be too much work. The work was split between two work groups and the Delta-V protocol, an extension for WebDAV, was defined in 2002 with RFC 3253. Finally, WebDAV was updated with RFC 4918 in 2007.
WebDAV Features and Use
WebDAV extends HTTP headers for communication with a server. The new headers include:
- COPY, copy a resource
- MOVE, move a resource
- MKCOL, create a collection, for example, a folder
- PROPFIND, retrieve properties stored as XML
- PROPPATCH, change and/or remove properties
- LOCK, put a lock on a resource
- UNLOCK, remove a lock from a resource
WebDAV is supported on various servers, including Apache, Microsoft’s Internet Information Systems, SabreDAV, Nginx, ownCloud and Nextcloud.
Nextcloud and ownCloud are suites of client-server software for creating and using file hosting services. Though similar to Dropbox, both are open source, which allows anyone to install and operate them free of charge on a private server.
If you’re not inclined to build your own cloud storage, you can use existing services that support WebDAV. Some of the best cloud storage services, including pCloud and Google Drive, do. Though it isn’t a top-tier service, Box supports WebDAV, too, if only until Jan. 31, 2019.
Microsoft Windows has native support for WebDAV in its explorer. Linux supports it in GNOME Files and Konqueror and Dolphin file managers. There’s native support for CalDAV and CardDAV on macOS. Version control systems such as Git and Apache Subversion use WebDAV, as well.
Microsoft Office, Apple iWork, Adobe Photoshop and Dreamweaver use it behind the scenes. Instead of editing local files using those apps, you can use a WebDAV URL to edit files on remote servers without downloading them to your local machine.
There are apps that focus on WebDAV exclusively, such as cadaver, which is a command-line tool for Linux, DAV Explorer and WebDrive. WinSCP, Cyberduck and others can work with multiple protocols (read our Cyberduck guide).
WebDAV started as a way to give the editing functionality back to the World Wide Web. Since then, it has been extended many times, most notably to support versioning capabilities, which are necessary for editing. Others extensions added scheduling, contact sharing and search to enhance working on remote servers.
Sign up for our newsletter
to get the latest on new releases and more.
Any web server that supports WebDAV can act as a file server, which is no small thing. You can access servers using the command-line or more user-friendly graphical clients. Cloud storage used for collaboration and other productivity apps are a more practical choice. There’s no questioning that WebDAV delivers for accessing multiple remote repositories, though.
What do you think of WebDAV? Does its complexity outweigh its usefulness for you? Let us know in the comments below. Thank you for reading.