Getting 401 on Twitter OAuth POST requests
Posted
by Baishampayan Ghose
on Stack Overflow
See other posts from Stack Overflow
or by Baishampayan Ghose
Published on 2009-03-27T06:52:35Z
Indexed on
2010/03/19
20:01 UTC
Read the original article
Hit count: 413
I am trying to use Twitter OAuth and my POST
requests are failing with a 401
(Invalid OAuth Request
) error.
For example, if I want to post a new status update, I am sending a HTTP POST
request to https://twitter.com/statuses/update.json
with the following parameters -
status=Testing&oauth_version=1.0&oauth_token=xxx&
oauth_nonce=xxx&oauth_timestamp=xxx&oauth_signature=xxx&
oauth_consumer_key=xxx&in_reply_to=xxx&oauth_signature_method=HMAC-SHA1`
My GET
requests are all working fine. I can see on the mailing lists that a lot of people have had identical problems but I could not find a solution anywhere.
I am using the oauth.py
Python library.
© Stack Overflow or respective owner