curl downloads from ownCloud public links

On a public ownCloud page take the link from the “Download” button on the top right side. Then:

curl -J -O https://owncloud.address.com/s/jdjdsjiawn/download