maraujop/requests-oauth — Issue #6: Retrieving a request_token from Twitter fails with Requests-oauth 0.2.2 and Requests 0.8.1

Author: ctoth
Created: 2011-11-19 11:23:07+00:00
State: open

Previously, posting to https://api.twitter.com/oauth/request_token with a consumer key and secret provided would give back a useable request token. It now gives a rather useless http 401 error:
```python
>>> r=t.client.post('https://api.twitter.com/oauth/request_token')
>>> r

>>> r.content
u'Failed to validate oauth signature and token'
>>> r.request.headers
{'Content-Type': 'application/x-www-form-urlencoded', 'Accept-Encoding': 'identi
ty, deflate, compress, gzip', 'Accept': '*/*', 'User-Agent': 'python-requests/0.
8.1'}
>>> r.request.params
{'oauth_nonce': '69262010', 'oauth_timestamp': '1321701553', 'oauth_consumer_key
': 'Iay3HXuKW3lYQ1REEKnWg', 'oauth_signature_method': 'HMAC-SHA1', 'oauth_versio
n': '1.0', 'oauth_signature': 'wcPIt0x1G0MpE+eO9NNQUwruRP8='}
>>> r.request.data
{}
>>> r.request.cookies
{'guest_id': 'v1%3A132170155381775185', '_twitter_sess': 'BAh7CDoPY3JlYXRlZF9hdG
wrCJo2jbszAToHaWQiJTU5MWVjNmJjYjRiZTA1%250AMmRhM2UxMDZlNWM4Yjk2MWE1IgpmbGFzaElDO
idBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--1ba7fb8449
bec52a105b50b825a4623c35a2fe07', 'k': '10.35.56.136.1321701553810853'}
>>>
```