Quantcast
Viewing latest article 16
Browse Latest Browse All 65

Answer by Sergey Ponomarev for How do I send this specific curl WebDAV PROPFIND command from a terminal?

Are you on windows terminal, right?The command that you tried is for Linux/UNIX. There is a difference.

On Win you can install Git and it also will install bash terminal which is the same as in linux.

Anyway the command that you tried sends a PROPFIND request with a body that contains XML with a list of properties that you wish to receive.And the list contains only one property resourcetype which is a content type like text/plain. For sure you wish to get all fields like name and size.

You can simply omit the body then it will return all default props:

curl -v -i -X PROPFIND example.com/webdav -H "Depth: 1" 

The Depth: 1 header means to list the folder only but not it's subfolders.

Here I collected samples WebDAV with curl for scripts and command line


Viewing latest article 16
Browse Latest Browse All 65

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>