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