Using curl to download a document from Confluence cloud

Not sure if this is the correct group to ask this question, so if I a in the wrong group please let me know were to addressed it.

I used to have a curl one liner which allowed me to download a document stored on the wiki. It was as follows:

curl -L -u myusername@mywebsite.com:mypassword -X GET -H ; Content-Type: application/force-download https://myhost.atlassian.net/wiki/download/attachments/3547482/pdfstorefilename.pdf

As of recent this no longer works. (probably as of October 1, 2018).

I get:
curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
curl: (35) Unknown SSL protocol error in connection to…

So, how do you do this now?

It appears these errors are generated when using curl version 7.15.5 which is include in most RHL 5.x. With new Confluence Cloud and the older version of curl the error messages occur and no download is performed.

Need to upgrade to 7.19.7 and then the download is performed correctly.

2 Likes