Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7640337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:38:44+00:00 2026-05-31T08:38:44+00:00

I am developing an application that store some data in a Amazon SimpleDB instance.

  • 0

I am developing an application that store some data in a Amazon SimpleDB instance. When doing update of values in this database I get an error from the API:

Array ( [curl] => [Errors] => Array ( [0] => Array ( [Code] => SignatureDoesNotMatch [Message] => The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. [BoxUsage] => ) ) )

I have found out that this happens if I try to update the database with some non ASCII characters like “ØÆÅ”. I have double checked that there is not something wrong with the timestamps used to generate the signature (like some questions on the topic at Stack Overflow suggests).

Can anyone confirm that SimpleDB does not support these characters? Does anyone got a workaround for this?

I am using a 3rd party library to access the database. It can be found here: http://sourceforge.net/projects/php-sdb/

Edit:

Further investigation of the 3rd party library shows that all parameters are encoded using rawurlencode(). As far as I can see it also follows the requirements from Amazon that can be found in this article: http://aws.amazon.com/articles/1928

So I am at loss on what to try next here.

Edit 2:

I think I might be closing in on the issue here. I got an iPhone application that uses the same PHP API to store the values as well. The application works fine when posting these non ASCII characters. In the application we set the “Content-Type” to be “application/x-www-form-urlencoded”.

I have found some articles describing the same:

http://chris.finne.us/2010/04/12/amazon-simpledb-signaturedoesnotmatch-error-when-putting-utf-8-characters-via-a-http-post/

http://groups.google.com/group/simple-record/browse_thread/thread/aa3cd430b35e8e1c?pli=1

I’ve tried to specify the content-type in my code, but have not been successful yet. The implementation uses the PHP function curl to do the request.
I have added this code to set the header, but it does not seem to do any difference:

($headers variable declared at the top of the class)
$this->headers[] = 'Content-Type: application/x-www-form-urlencoded;charset=utf-8';
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->headers);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:38:46+00:00Added an answer on May 31, 2026 at 8:38 am

    I circumvented the problem by posting the data to a php script, then using this script to post the values to Amazon. This fixed the content type issues I had when reading the values directly from a cookie.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing an application that needs to store data in it's on database,
I am developing a application that needs to store data with many writes and
I'm developing an iphone apllication that stores some data into a database. That is
I'm developing a multi-user application which uses a (postgresql-)database to store its data. I
I am developing a desktop window application. After form load, get some data from
I am developing an application that is required to store previous versions of database
I am developing a web application in which I plan to store some values
I am developing a database-like application that stores a a structure containing: struct Dictionary
I'm developing an application that needs to perform some processing on the user's Outlook
I'm developing an application that needs to store lots of records in an organized

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.