使用curl在命令行下上传文件到webdav(含删除,新建目录,重命名等其他操作)

上传

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'

评论

Popular Posts

女生可以对男朋友心机到什么程度?(苦)

网站建设公司不挣钱的原因

Wenger 单肩包

LAMP网站架构方案分析

流浪猫鲍勃 A Street Cat Named Bob (2016)

会声会影 X7旗舰简体珍藏版

小兵 封装专用母盘 XPLITE-V8 第四版

如何提高自己的领悟力

移动联通电信年底积分兑换话费(防止清零)

《贫穷的本质(修订版)》阿比吉特·班纳 & 埃斯特·迪弗洛