It doesn’t work for me. I have a password protected shared directory and I want to be able to download only one file from it using a simple command in a console. I know about davfs2, but it’s too complicated for my scenario, I’m wondering, maybe there is a simpler solution, like
curl -u "shareID:passWD" -H "X-Requested-With: XMLHttpRequest" "https://some.share.com/public.php/webdav?file=specific_file.zip" --output specific_file.zip
?