Amazon S3 Authentication Tool for Curl

Sample Code & Libraries>Amazon S3 Authentication Tool for Curl
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

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.

Details

Submitted By: EricW@AWS
AWS Products Used: Amazon S3
Language(s): Perl
License: New BSD
Created On: March 13, 2006 6:13 PM GMT
Last Updated: December 5, 2012 5:59 PM GMT
Download

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?

  • 2012-03-08: Updates to support Multi-Object Delete, Object Expiration and --calculateContentMd5.
  • 2011-08-16: Updates to support Website, --copySrcRange, and response header overrides.
  • 2010-11-16: Updates to support Copy, Versioning, and Multipart Upload
  • 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.

Comments

Great low-level tool
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
Johann C. Rocholl on February 22, 2008 3:35 PM GMT
Powerful and easy to use
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").
Allen on December 11, 2007 8:44 PM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.