Based on
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-oauth-request_tokenyou
should be using a GET.

On Fri, Jul 3, 2009 at 04:58, muramastu <keic...@gmail.com> wrote:

>
> 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<HTTP://twitter.com/oauth/request_token%26oauth_consumer_key%0A%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"
>



-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.

Reply via email to