3

Is there a way to use https authentication with Axel to download files?

I have gone through this answer and tried what was written, but to no extent. I got
HTTP/1.1 401 Unauthorized
as the output for this input command:
axel -n 60 -k -H "Authorisation: Basic [some hash string]" "https://xxx.rar"
for which the hash string was generated using :
echo -n "username:password" | openssl base64

So ultimately, I want to know, what do I change in the input command to be able to download the file?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227

1 Answers1

4

Standard url scheme is: proto://user:password@host:port/path

axel -n 60 -k "https://user:password@host/xxx.rar" 
Ipor Sircer
  • 14,376
  • 1
  • 27
  • 34
  • So I tried this and got this as the output, `HTTP/1.1 404 Not Found` for the input `axel -n 60 "https://user:password@host/xxx.rar`, but I am thinking, since the path has the hosting name as well, should I repeat it or should I just cancel that particular part? – Pratyush Manocha Nov 30 '17 at 03:06