Menu

#192 HTTP 302 - use redirected URL for splits also

open
nobody
None
5
2012-09-28
2011-03-10
shearerc
No

As of aria2 1.10.9 , if we try downloading using multiple splits per file that gives a HTTP 302 redirect, aria2 will perform it like so:

aria2c -s3 "http://www.megaupload.com/?d=T1G4R5YJ"

Split 1 : GET http://www.megaupload.com/?d=T1G4R5YJ -->http 302---> (temporary URL 1)
Split 2: GET http://www.megaupload.com/?d=T1G4R5YJ -->http 302---> (temporary URL 2)
Split 3: GET http://www.megaupload.com/?d=T1G4R5YJ -->http 302---> (temporary URL 3)

So basically for each split, aria2c will perform a GET request to the original URL (http://www.megaupload.com/?d=T1G4R5YJ in my example) and may get a different redirected url for each connection.
Normally for most situations this is OK.
But there are some problematic hosts which may give out a HTTP 503 error due to misconfigured firewall or connection limit mechanisms.

So my request is,
Could you maybe add an option to aria2c so that its behavior can be changed slightly as follows:

aria2c -s3 "http://www.megaupload.com/?d=T1G4R5YJ"

Split 1 : GET http://www.megaupload.com/?d=T1G4R5YJ -->http 302---> (temporary URL 1)
Store (temporary URL 1) in memory, and use it for subsequent splits......
Split 2: GET (temporary URL 1)
Split 3: GET (temporary URL 1)

Thanks!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.