Highlighted
hstewart2
1 Copper

Request Signature Mismatch with ColdFusion

Hello,

I am trying to generate the test signature as shown in the API Documentation.

I have tried stripping off the last carriage return, as stated in other posts, but there doesn't seem to be a trailing carriage return.

My code is as follows:

<cfsavecontent variable="signature">

POST

application/octet-stream

Thu, 05 Jun 2008 16:38:19 GMT

/rest/objects

x-emc-date:Thu, 05 Jun 2008 16:38:19 GMT

x-emc-groupacl:other=NONE

x-emc-listable-meta:part4/part7/part8=quick

x-emc-meta:part1=buy

x-emc-uid:6039ac182f194e15b9261d73ce044939/user1

x-emc-useracl:john=FULL_CONTROL,mary=WRITE

</cfsavecontent>

<cfset signature = reReplaceNoCase(signature,"\r","","all") />

<cfset signature = trim(signature) />

<cfset decoded_key = 'LJLuryj6zs8ste6Y3jTGQp71xq0=' />

According to the documentation, I should be receiving a signature of WHJo1MFevMnK4jCthJ974L3YHoo=, but instead I get NidBQcRTPlW9IFvqryF81VMKVIg=

Can someone please tell me what I'm doing wrong?

Thanks

0 Kudos