indiWiz.com

Subhash's Tech Log

Accessing WebDAV From Commandline

with one comment

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 ,

One Response to 'Accessing WebDAV From Commandline'

Subscribe to comments with RSS or TrackBack to 'Accessing WebDAV From Commandline'.

  1. Thanks Subwiz,
    I tried the above command and it works fine. But using cadaver we need to maintain username,pwd,hostname in *.netrc* file. It’s raising an security issue.

    Is there any other possibility to pass the above parameters in a cadaver command line?

    -Velrajan

    Velrajan

    3 Aug 10 at 1:27 pm

Leave a Reply