[twitter-dev] signature error (xAuth)

2010-03-16 Thread amitkr
Hi

I am  using a curl command similar to the one given below (here I am
using fake data for app_key, app_secret, username, password)

NOTE: new lines are for display purpose only

curl -k
-x 192.168.1.1:8921
-d
x_auth_username=tomlarryx_auth_password=tomislarryx_auth_mode=client_auth
-H Authorization: OAuth oauth_consumer_key=\54df5df4df596561fbGXxhw
\,oauth_nonce=
\0f8610fa7a83bc52846dab0f01831fa7\,oauth_signature_method=\HMAC-
SHA1\,oauth_timestamp=\1268637371\,oauth_version=
\1.0\,oauth_signature=\vGfzwDTGguZDKSOUILyLQ4nYh6Q%3D\
https://api.twitter.com/oauth/access_token

But it gives error Failed to validate oauth signature and token

Sample data (all these values are fictitious) that I used for writing
this example is:
username = tomlarry
password = tomislarry
app_key  = 54df5df4df596561fbGXxhw
app_secret = 54jh5k4d5f4f2gjh5tj6j1j656f1g6j1dfghwstjd3
Timestamp = 2010-03-15 07:16:11 (GMT)


Please correct me where I am making mistake.


[twitter-dev] signature error (xAuth)

2010-03-15 Thread amitkr
Hi

I am  using a curl command similar to the one given below (here I am
using sample data for app_key, app_secret, username, password)

NOTE: new lines are for display purpose only

curl -k
-x 192.168.1.1:8921
-d
x_auth_username=tomlarryx_auth_password=tomislarryx_auth_mode=client_auth
-H Authorization: OAuth oauth_consumer_key=\54df5df4df596561fbGXxhw
\,oauth_nonce=
\0f8610fa7a83bc52846dab0f01831fa7\,oauth_signature_method=\HMAC-
SHA1\,oauth_timestamp=\1268637371\,oauth_version=
\1.0\,oauth_signature=\vGfzwDTGguZDKSOUILyLQ4nYh6Q%3D\
https://api.twitter.com/oauth/access_token

But it gives error Failed to validate oauth signature and token

Sample data that I used for writing this example is:
username = tomlarry
password = tomislarry
app_key  = 54df5df4df596561fbGXxhw
app_secret = 54jh5k4d5f4f2gjh5tj6j1j656f1g6j1dfghwstjd3
Timestamp = 2010-03-15 07:16:11 (GMT)


Please correct me where I am making mistake.