Axel is not resolving URLs that redirect to another URL that has the file as an attachment.
As you see, I'm getting 404 when I try to download this URL. (original site is replaced with example.com)
~ ▶ axel https://eusa.example.com/zipstream/1581777.zip?tunnel=1&token=b7385bb62e3111e3ace1002481265109&storage=s09
767
768
Initializing download: https://eusa.example.com/zipstream/1581777.zip?tunnel=1
[1] Exit 1 axel https://eusa.example.com/zipstream/1581777.zip?tunnel=1
+ Done token=b7385bb62e3111e3ace1002481265109
~ ▶ HTTP/1.1 404 Not Found
The website documentations describe URL redirect as following:
> First response is always a redirect. Location of the file is in
> ‘Location’ header. The client must send a new GET request to the new
> location. Only headers are shown.
HTTP/1.1 302 FOUND
Server: nginx
Date: Thu, 09 Feb 2012 15:58:53 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Keep-Alive: timeout=60
Content-Length: 385
Location: http://s01.example.com/v2/files/26205116/download?oauth_token=4a63387841ce11e1a047001018321b64
goes to:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 09 Feb 2012 15:58:53 GMT
Content-Type: application/x-rar
Content-Length: 3190802
Last-Modified: Fri, 16 Sep 2011 11:42:13 GMT
Connection: keep-alive
Keep-Alive: timeout=60
Content-Disposition: attachment; filename="file.rar"
Accept-Ranges: bytes
curl
is capable of downloading the URL. But axel
gives me 404. I want to have Axel's multi-connection feature. How can I use curl
to just resolve the URL and give downloading task to axel
?
Asked by Mohsen
(2705 rep)
Dec 14, 2013, 04:11 AM
Last activity: Dec 15, 2013, 03:04 AM
Last activity: Dec 15, 2013, 03:04 AM