cUrl Commands
| Oliver Rademaker
DEVOPS TECHNIK
Meine Kollektion von curl Kommandos.
Webdav
- Webdav URL: http://example.com/webdav
- Username: user
- Password: pass
-
Download File
curl --remote-name http://example.com/file.txt -
Reading Files/Folders
curl http://example.com/webdav -
Creating new Folder
curl -X MKCOL http://example.com/webdav/new_folder -
Uploading File
curl -T /path/to/local/file.txt http://example.com/webdav/test/new_name.txt -
Renaming File
curl -X MOVE --header Destination:http://example.org/webdav/new.txt http://example.com/webdav/old.txt -
Deleting Files
curl -X DELETE http://example.com/webdav/test.txt -
Deleting Folders
curl -X DELETE http://example.com/webdav/test -
With basic authentication
curl --basic --user user:pass http://example.com/webdavcurl --digest --user user:pass http://example.com/webdavcurl --anyauth --user user:pass http://example.com/webdav