Use --anyauth to let curl determine the best method. curl --anyauth -u "user:pass" -O https://example.com Use code with caution. 3. Listing Directory Contents
To download a file, use a simple GET request. You must specify how to save the file locally using the -o or -O flags. webdav download curl
To see what files are available before downloading, you must use the WebDAV-specific PROPFIND method. curl -u "user:pass" -X PROPFIND https://example.com Use code with caution. Use --anyauth to let curl determine the best method
curl -u "username:password" https://example.com -o my_file.zip Use code with caution. curl -u "username:password" -O https://example.com Use code with caution. 2. Handling WebDAV Authentication use the --digest flag.
The standard -u flag sends credentials using the Basic authentication scheme.
If your server requires it, use the --digest flag.
Firefox
Chrome