首先是获取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"
&[......]