How do I download JIRA installer (.bin) using curl?

This question is in reference to Atlassian Documentation: Installing JIRA on Linux

I want to use curl to download the JIRA Linux installer (.bin) onto my server.

I cannot use the link invoked by the "download" button on page https://www.atlassian.com/software/jira/download/

 

2 answers

Here are my results trying to leverage the answer above

sudo -u root curl -O https://www.atlassian.com/software/jira/post-dow              nload?file=https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.1.4-jir              a-7.1.4-x64.bin   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed 100 17130    0 17130    0     0  46292      0 --:--:-- --:--:-- --:--:-- 46297

 

This bin is 308 MB when I download from the browser  which is not an option on the real Target platform

 head atlassian-jira-software-7.1.4-jira-7.1.4-x64.bin <!doctype html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://plus.google.com/+atlassian" rel="publisher" /> <link rel="alternate" href="https://www.atlassian.com/software/jira/post-download/" hreflang="en" /> <link rel="alternate" href="https://es.atlassian.com/software/jira/post-download/" hreflang="es" /> <link rel="alternate" href="https://de.atlassian.com/software/jira/post-download/" hreflang="de" /> <link rel="alternate" href="https://fr.atlassian.com/software/jira/post-download/" hreflang="fr" /> <link rel="alternate" href="https://ja.atlassian.com/software/jira/post-download/" hreflang="ja" /> [ec2-user@ip-10-100-8-26 tmp]$ <link href="https://plus.google.com/+atlassian" rel="publisher" />

 

Dollars for clues.

 

Please and thank you

 

Mark E. LLoyd

Clue:  I don't think Atlassian actually tests their documentation or answers...

That is exactly what I was getting as well.  I believe it is the first snippet for the HTML that brings up the web page that displays "Thanks for downloading JIRA Software" after which the HTML page initiates the download.  

That approach works great if you are accessing the link using a browser on Linux.

But, "curl" is not a browser...   I believe we need a URL that directly downloads the .bin itself.

just get the url in the 'file='

Thanks Gabrielle, that works.

You can now accept the answer below to mark it "accepted" smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

456 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you