Assuming the following Data:
Webdav URL: http://example.com/webdav
Username: user
Password: pass
Actions
Reading Files/Folders
1curl 'http://example.com/webdav'
Creating new Folder
1curl -X MKCOL 'http://example.com/webdav/new_folder'
Uploading File
1curl -T '/path/to/local/file.txt''http://example.com/webdav/test/new_name.txt'
Renaming File
1curl -X MOVE --header 'Destination:http://example.org/webdav/new.txt''http://example.com/webdav/old.txt'
Deleting Files/Folders
File:
1curl -X DELETE 'http://example.com/webdav/test.txt'
Folder:
1curl...