来自Bitbucket的Wget压缩提示(mercurial)

Esa*_*Esa 2 mercurial wget bitbucket

我们想使用mercurial进行Web开发,但我们不能(也不想)在共享主机上安装mercurial.我们尝试使用这里提到的wget ,但是我得到401错误.凭据和链接是正确的(为安全起见进行了修改).

有没有办法从命令行下载源?

这个错误还是我做错了什么?

回复如下:

$ 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.
Run Code Online (Sandbox Code Playgroud)

拿2:

Thanx求助...我将http改为https和用户用户及密码属性:

浏览器工作正常,Wget没有......

$ 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.
Run Code Online (Sandbox Code Playgroud)

拿3:

我也尝试过curl,但是我收到错误消息:Forbidden(403)CSRF验证失败.请求中止.

Esa*_*Esa 8

我让它与curl一起工作:

curl --digest --user username:password https://bitbucket.org/user/repo/get/tip.zip -o test.zip    
Run Code Online (Sandbox Code Playgroud)

来自Bitbucket的回答:问题#3225 - Commanline下载压缩提示

嗨Esa,我们实际上不支持下载源包的基本身份验证.您需要使用摘要身份验证.另外,根据我的理解,wget的摘要auth实现有一个错误.您可以将curl与--digest标志和-o标志一起使用来指定输出文件.干杯,迪伦