Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Amazon Amazon-SQS
Morning all,
 
I'm developing an Amazon Simple Message Queue app in C++ [1] and I'm having trouble working out what string I have to sign when I make a query. I've been through the docs (especially this), had a gawp through the libAWS code (which I can't use because of licensing), looked at loads of source code in other languages and I can't see what I'm doing incorrectly. I've even hand run what I think the algorithm for creating a signing string is using the OpenSSL and cURL command lines to do the Base64 and URL encoding.
 
Rather than bore everyone with questions like "here's a URL, what's the signing string?" can anyone point me at an app somewhere that works out what the signing string should be for an arbitrary query URL?
 
There's a nice JavaScript app for download for SignatureVersion=1 but I can't find anything like it for SignatureVersion=2.
 
Cheers,
 
Ash
 
[1] Yes I am a masochist. But only when paid enough.
 
PS: Found out what was wrong, my signing string was correct, my URL encoding was correct, my HmacSHA1 was correct, my Base64 encoder was chucking an extra newline in... arrrggggghhhhh. And I didn't spot it for three days as I always assume other people's code is correct!
Posted 20-Apr-12 0:34am
Aescleal30.9K
Edited 23-Apr-12 8:30am
Code-o-mat16.6K
v3
Comments
Code-o-mat at 23-Apr-12 13:31pm
   
Those kind of problems are nasty, my condolences.
Aescleal at 23-Apr-12 13:47pm
   
It was - thanks for editing the title of the question, I completely forgot to do that in my relief at having found out what was wrong!
Code-o-mat at 23-Apr-12 13:56pm
   
Yourwelcome. It happens, i'm glad it worked out. :)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Answered only to remove from unanswered list - solved by OP.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 Zoltán Zörgő 99
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 23 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100