Downloading a password protected shared file from commandline



I've looked at many different resources, trying to figure out how to do this, but I haven't had any luck - I shared a file and I have a URL in this format<file ID>/download

and it is password protected. How do I use curl or wget to download the file?

I have files I want to allow others to download directly to their Linux machine instead of them needing to download it on their machine then moving it to their server.

I was looking at some examples and they mentioned the use of webdav to do it, but I wasn't able to figure out the correct way to set this up.




you can access public shared links via WebDAV and curl like explained here:


Alright thanks, I got it. It looks like this:

curl -u "<share token>:<password>" "" -o <filename>