Automatically download files behind a share protected by password, from unix command line

Hi,
thank you for your quick answers…in fact, I want to give acces files to my external users …and offer them an easy way to download their files, just with one command line. They don’t have accounts on our nexcloud instance.
I would like to share files with a public link and password…

I found a post in this forum that corresponds exactly to my need (Using curl/wget to download file from password protect link), but, unfortunately, an error raises
Command executed :
curl -u "c7MMk2AAN8nPZBD:oReFfEE4sds" -H "X-Requested-With: XMLHttpRequest" https://nextcloud.myinstance.fr/public.php/webdav/
Error received : This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client

I guess this is a nexcloud config issue…I will try to find more information on it…

Gérald

2 Likes