Question about the Oauth1 base string


Hi all,

I am trying to implement a OAuth1 C++ library. I am stuck at building the OAuth1 base string. I keep getting {“errors”:[{“code”:32,“message”:“could not authenticate you.”}]} error. And I believe the bug is at the base string:

I follow this doc to build the base string:

Here is my Base string for posting a Tweet: “123456”


This is my base string for uploading a image named “mac_1024.jpg”


I am pretty sure that the hamc-sha1 sign algorithm works fine. I have compared it with python hamc library. So can anyone have a look at the base string I built. Thanks a lot!


Issued fixed by using the exactly same sequence as the doc to build the base string