SourceForge has been redesigned. Learn more.
Close

#291 URL parameters being dropped when making a request

Undecided
closed
nobody
None
1
2014-08-16
2012-11-09
No

I am trying to use aria2 to download private files from Amazon S3. I am generating a file url that includes authorization parameters. The final request looks something like

https://[my_bucket].s3.amazonaws.com/example.db?AWSAccessKeyId=[my_aws_access_key]&Signature=xda4b9jYtcjglLR2kRxri5mu03M%3D&Expires=1352430087

The aria2 command I am using is

aria2c -d /home/me/backups/1352429487 -o example.db https://[my_bucket].s3.amazonaws.com/example.db?AWSAccessKeyId=[my_aws_access_key]&Signature=xda4b9jYtcjglLR2kRxri5mu03M%3D&Expires=1352430087

When aria2 makes the request, it seems to using the url

https://[my_bucket].s3.amazonaws.com/example.db

which is then returning a 403 as it does not include the auth params.

I could not find any way to force aria2 to include the query params. I could not find where to modify it in source to do this, am not that proficient in C/C++. Is this something that could be added to aria2?

Is there any way to force aria2 to include query params in request and if not, could it please be added.

Discussion

  • tujikawa

    tujikawa - 2012-11-09

    URI containing characters which have special meaning in shell must be quoted.
    Try

    aria2c 'https://[my_bucket].s3.amazonaws.com/example.db?AWSAccessKeyId=[my_aws_access_key]&Signature=xda4b9jYtcjglLR2kRxri5mu03M%3D&Expires=1352430087'
    
     
  • tujikawa

    tujikawa - 2013-03-24

    I believe this was caused by missing quotations. Close the issue.

     
  • tujikawa

    tujikawa - 2013-03-24
    • status: open --> closed
     

Log in to post a comment.