我正在使用以下CURL将Assembla中的文件下载到本地系统中。在Curl命令中,我将API密钥和机密作为访问令牌。但它不起作用。让我知道如何使用CURL下载文件。
以下是我用来下载文件的卷曲:
curl -H "X-Api-Key:19f66f38efcdbc" -H "X-Api-Secret:c3eb3856fd08b37f58f490s013wred1" --insecure https://www.assembla.com/code/software-dept/Release/Test.apk?_format=raw
以下是我运行上面的CURL时得到的输出:
$ curl -H "X-Api-Key:19f66f38efcdbc" -H "X-Api-Secret:c3eb3856fd08b37f58f490s013wred1" https://www.assembla.com/code/software-dept/Release/Test.apk
<html><body>You are being <a href="https://www.assembla.com/login">redirected</a
>.</body></html>
先谢谢
答案 0 :(得分:0)
curl -H "X-Api-Key:19f66f38efcdbc" -H "X-Api-Secret:c3eb3856fd08b37f58f490s013wred1" --insecure https://api.assembla.com/code/software-dept/Release/Test.apk?_format=raw
答案 1 :(得分:0)
使用命令: curl -H“ X-Api-Key:19f66f38efcdbc” -H“ X-Api-Secret:c3eb3856fd08b37f58f490s013wred1” --insecure -o Test.apk https://api.assembla.com/code/software-dept/Release/Test.apk