Monday, January 12, 2009

Amazon WebServices and... sort your params !!!

A couple of weeks ago I start working with Amazon Web Services. Very, very powerful. I just work with a few features like EC2 and S3 but I love it. There are APIs in most language (Java, PHP, ...) to use the Amazon WS.

Anyway, this post is a reminder for all of you that want to implement an API for AWS in some other language (like me and CFML).

Extracted from http://docs.amazonwebservices.com/AWSEC2/2008-08-08/DeveloperGuide/ I copy the sentence that solve my headache:

Sort the query parameters (not URL-encoded) without using case-sensitively.

When you invoke some AWS action the params must be sorted by its name.

Be happy and read the doc.

No comments: