使用者工具

網站工具


server:webdav:webdav_by_curl

webdav by curl

to upload a file

curl --digest --user 'user:pass' -T SomeFile.html 'http://uwiki.net/uwiki/SomeFile.html'

create a dir

curl --digest --user 'user:pass' -X MKCOL http://uwiki.net/uwiki/

move/rename a file

curl --digest --user 'user:pass' -X MOVE --header 'Destination: http://uwiki.net/uwiki/curl_dav.html' http://quad/svn/SomeFile.html

list of files in a dir

curl -i -X PROPFIND http://uwiki.org/uwiki/ --upload-file - -H "Depth: 1" <<end 
<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:">
<a:prop><a:resourcetype/></a:prop>
</a:propfind>
end

some info gleaned from msdn webDAV reference meanwhile, don't make me read the webDAV specs oh wow, in a very depressing way - microsoft make webdav hard

另一個:

http://italiangrid.github.io/storm/documentation/webdav-guide/3.0.0/

server/webdav/webdav_by_curl.txt · 上一次變更: 2014/05/14 02:42 由 eddie