Hello, even if this is a quite old thread, i am stuck on a very similar problem.
I do use the twitcurl API (with libcurl, libssh2, openssl) and the provided example application TwitterClient do have problems in requesting the following:
https://api.twitter.com/oauth/request_token
Authorization: OAuth oauth_consumer_key=“rm8eGW26CLqGUJnEoXJkbag6m”,oauth_nonce=“1401750717128”,oauth_signature=“JIOdZZJ7dt9kKMlW6n7DS8mvSJw%3d”,oauth_signature_method=“HMAC-SHA1”,oauth_timestamp=“1401750717”,oauth_version=“1.0”
The answer is error code 401: Failed to validate oauth signature and token
The CustomerKey and CustomerSecret are correct, and the HMAC(EVP_sha1(),… , base64_encode(… and urlencode(… of the oauth_signature works properly.
The content of the oauth_signature which get crypted with he secret key is following:
GET&https%3a%2f%2fapi.twitter.com%2foauth%2frequest_token&oauth_consumer_key%3drm8eGW26CLqGUJnEoXJkbag6m%26oauth_nonce%3d140175102412b%26oauth_signature_method%3dHMAC-SHA1%26oauth_timestamp%3d1401751024%26oauth_version%3d1.0
Is it correct that way?
Any ideas?
Thanks