Note that there are some explanatory texts on larger screens.

plurals
  1. POWget compressed tip from Bitbucket (mercurial)
    text
    copied!<p>We would like to use mercurial for web development, but we can't (and don't want to) install mercurial on a shared host. We try to use wget as mentioned <a href="https://stackoverflow.com/questions/3082107/how-to-pull-a-bitbucket-repository-without-access-to-hg">here</a>, but I get 401 error. Credentials and link are correct (modified for security).</p> <p>Is there a way to download source from command line?</p> <p>Is this bug or am i doing something wrong?</p> <p>Response below:</p> <pre><code>$ wget _http://xxxx:yyyyyyy@bitbucket.org/username/repo/get/be51983f6357.zip --2011-10-31 00:26:50-- http://username:password@bitbucket.org/username/repo/get/be51983f6357.zip Resolving bitbucket.org... 207.223.240.182, 207.223.240.181 Connecting to bitbucket.org|207.223.240.182|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://bitbucket.org/username/repo/get/be51983f6357.zip [following] --2011-10-31 00:26:51-- https://bitbucket.org/username/repo/get/get/be51983f6357.zip Connecting to bitbucket.org|207.223.240.182|:443... connected. HTTP request sent, awaiting response... 401 UNAUTHORIZED Authorization failed. </code></pre> <h1>Take 2:</h1> <p>Thanx for help... i changed http to https and user user &amp; password attributes:</p> <p>Browser works fine, Wget does not...</p> <pre><code>$ wget --verbose --user=XXXXX --password=YYYY https://bitbucket.org/ekku/REPO/get/aabbccddeee.zip --2011-10-31 18:27:10-- https://bitbucket.org/ekku/REPO/get/aabbccddeee.zip Resolving bitbucket.org... 207.223.240.182, 207.223.240.181 Connecting to bitbucket.org|207.223.240.182|:443... connected. HTTP request sent, awaiting response... 401 UNAUTHORIZED Failed writing HTTP request: Bad file descriptor. Retrying. </code></pre> <h1>Take 3:</h1> <p>I also tried curl, but i get error message: Forbidden (403) CSRF verification failed. Request aborted.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload