Resources



Sample Code and Libraries

Amazon S3 Authentication Tool for Curl

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

Curl is a popular command-line tool for interacting with HTTP services. This Perl script calculates the proper signature, then calls Curl with the appropriate arguments.

Submitted By: EricW@AWS  
AWS Products Used: Amazon S3
Language(s): Perl
License: New BSD

About This Sample

  • Curl is a popular command-line tool for interacting with HTTP services.
  • This Perl script calculates the proper signature, then calls Curl with the appropriate arguments.

What's New?

  • 2007-11-05: Updates to support EU, added --doHead option, added a more secure mechanism to specify credentials.
  • 2007-05-18: Updates to support signed HTTP requests to virtual hosted buckets.
  • 2006-10-02: Updates for server access logging.

Prerequisites

Running the Sample

  • Run the sample using a command-line interface. For example:
    ./s3curl.pl --id=[aws-access-key-id] --key=[aws-secret-access-key] -- http://s3.amazonaws.com/[bucket-name]/[key-name]
  • See the README file in the attached download for more information on running the sample.

Discussion

The 5 most recent discussion messages. View full discussion.

Timothy Kay
RealName(TM)
Posts: 20
Registered: 10/3/06
Amazon S3 Authentication Tool for Curl
Posted: Apr 14, 2008 7:10 AM PDT
 
  Click to reply to this thread Reply

If you like this tool, you might also be interested in

http://developer.amazonwebservices.com/connect/entry.jspa?externalID=739

which takes a different approach to solve the same problem.



Reviews
Create Review Write a Review

Powerful and easy to use, Dec 11, 2007 12:44 PM
Reviewer: Allen
Powerful and easy to use. Dependency note: this script requires HMAC_SHA1.pm, which I located in the package perl-Digest-HMAC ("yum install perl-Digest-HMAC").

Great low-level tool, Feb 22, 2008 7:35 AM
Reviewer: Johann C. Rocholl
Very useful if you want to see exactly what's happening. Note, I had to do the following to install a required library on Ubuntu: sudo apt-get install libdigest-hmac-perl
Welcome, Guest Help
Login Login