Is it possible to download password protected public share file via curl?

I am looking for way to download password protected public share via curl

Here is example of url

On browser if user paste
http://cloud.example.com/index.php/s/NJD0Btc2duERDpD

owncloud will redirect to

http://cloud.example.com/index.php/s/NJD0Btc2duERDpD/authenticate

and after authentication actual download link will be

http://cloud.example.com/index.php/s/NJD0Btc2duERDpD/download

Say for example password for above share is test1234

Can we download it something like

curl --user :test1234 http://cloud.example.com/index.php/s/NJD0Btc2duERDpD/download

@Akshay_Hegde

Check this link:

2 Likes