在Basic Auth的网站下使用axel

首先是获取Base64的encode字符串:

echo -n "username:password" | openssl base64

然后是使用axel

axel -H "Authorization: Basic base64HashValue" "yourURL"

当然,也可以使用二合一的方法:

axel -H "Authorization: Basic  $(echo -n 'username:password' | openssl base64)" "yourURL"

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *