indiWiz.com

Subhash’s Tech Log

Accessing WebDAV From Commandline

without comments

Linux has a wonderful commandline tool for accessing WebDAV resources. It is cadaver. To access any resource:

$ cadaver http://portale:8080/alfresco/webdav/Web%20Projects

If the resource requires authentication, cadaver will prompt for it. Then you may use the standard UNIX and FTP commands for navigating and manipulating content. Some of the common commands are: cd, pwd, ls, put, get, mput, mget, less, cat and delete. Similar to FTP commands, it has corresponding local commands too: lcd, lpwd and lls.

Edit In-line

To edit a file in-line in cadaver, just issue the edit <file-name> command. The default editor will open the file. To change the editor (to, say, emacs), issue the command: set editor emacs from cadaver prompt.

Written by Subhash Chandran

November 21st, 2008 at 7:37 am

Posted in Linux

Tagged with ,

Leave a Reply