上传

curl --user 'user:password' --anyauth --progress-bar -sw '%{http_code}' 'https://dav.ktsee.com/myfile/' -T '/home/a.jpg' 

重命名

curl -X MOVE --user 'user:password' --anyauth -sw '%{http_code}' 'https://dav.ktsee.com/myfile/a.jpg' --header 'Destination:https://dav.ktsee.com/myfile/new.jpg' 

删除

curl -X DELETE --user 'user:password' --anyauth -sw '%{http_code}' 'https://dav.ktsee.com/myfile/a.jpg'

新建目录

curl -X MKCOL --user 'user:password' --anyauth -sw '%{http_code}' 'https://dav.ktsee.com/myfile/new_folder'