title: Download private BitBucket repository zip file using http authentication
body: <p>I'm writing a script to easily deploy an application. The code for the application is stored in a private BitBucket repository.</p>
  
  <p>I'd like to be able to download a zip file of the commit. I've tried authenticating with the following code:</p>
  
  <p><code>https://user:pass@bitbucket.org/user/repo/get/commit.zip</code></p>
  
  <p>However, instead of accomplishing the task it redirects to the login page on BitBucket.</p>