I’m trying to make twitter OAuth work with my c++ application.
Yeah…it’s kinda pain.
Having some trouble to request token from twitter.
here’s my base string:
OAuth oauth_callback="http://localhost", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="LW0S7FbNinJwvZ2C0bCpIg", oauth_version="1.0", oauth_timestamp="1356877627", oauth_nonce="8435", oauth_signature="cuTxGqFrLcwKc8qivzpwq584wtc%3D"
and some info I’ve been test the POST from http://www.hurl.it/
POST /oauth/request_token HTTP/1.1
Host: api.twitter.com
Accept: */*
Authorization: OAuth oauth_callback="http://localhost:65227", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="LW0S7FbNinJwvZ2C0bCpIg", oauth_version="1.0", oauth_timestamp="1356877627", oauth_nonce="8435", oauth_signature="cuTxGqFrLcwKc8qivzpwq584wtc%3D"
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
here’s what I get from response:
HTTP/1.1 401 Unauthorized
...
Failed to validate oauth signature and token
I’ll be very happy if someone could help