Dears,

   I'm trying to write a win32 desktop application to access
twitter.com by using C++ and stopped at the 1st step of OAuth process
- "Request a request token".  When the HTTP request is sent, the
message returned from server is "Failed to validate oauth signature
and token". Could anyone give me a suggestion?   Thanks in advance!
The following is my data:

#Base String:
    POST%26HTTP://twitter.com/oauth/request_token%26oauth_consumer_key
%3d6RfEXDtG3UBD1JFpUCPtg%26oauth_nonce
%3d1246610475%26oauth_signature_method%3dHMAC-SHA1%26oauth_timestamp
%3d1246610475

#Signature: (after HMAC-SHA1 encrypted, Base64 encoding and URL
encoding)
    OWDOwL0y6L8BUCXT2n%2b8hrw9wkA%3d

#HTTP request header I sent: (use POST as the HTTP method)
    Authorization: OAuth
oauth_consumer_key="6RfEXDtG3UBD1JFpUCPtg",oauth_signature_method="HMAC-
SHA1",oauth_signature="OWDOwL0y6L8BUCXT2n%2b8hrw9wkA
%3d",oauth_timestamp="1246610475",oauth_nonce="1246610475"

Reply via email to