Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:nas:webdav [2023/03/06 08:43] – [WebDAV with Lighttpd] stokitodocs:guide-user:services:nas:webdav [2023/03/18 20:24] – [Test it] removed cadaver stokito
Line 64: Line 64:
  
 <code bash> <code bash>
-curl -u youruser -X PROPFIND -H "Depth: 1http://192.168.1.1/dav/+curl -u youruser:pass -X PROPFIND -H 'Depth: 1http://192.168.1.1/dav/
 </code> </code>
 You must see a 207 status code and XML response with directory listing. You must see a 207 status code and XML response with directory listing.
  
- +See more details and examples [[https://gist.github.com/stokito/cf82ce965718ce87f36b78f7501d7940|WebDAV with curl]]
-For advanced test install the FTP-like command line client ''cadaver'': +
- +
-<code> +
-cadaver http://192.168.1.1/dav/ +
-Authentication required for webdav on server `192.168.1.1': +
-Username: youruser +
-Password:  +
-dav:/dav/> ls +
-Listing collection `/dav/': succeeded. +
-    README.txt +
-dav:/dav/> cat README.txt  +
-Displaying `/dav/README.txt': +
-It works! +
-dav:/dav/> exit +
-Connection to `192.168.1.1' closed. +
-</code> +
  
 ==== Don't forget about encryption! ==== ==== Don't forget about encryption! ====
  • Last modified: 2024/12/19 14:35
  • by stokito