Hi all!
Took me a while to get oath in django.piston working, all seems fine, except for PUT requests,
They are failing with "BAD REQUEST" (400).
It seems the oauh parameters are not getting expanded on PUT requests:
19/Sep/2011 09:51:38] "GET /api/profile/?oauth_nonce=60476587&oauth_timestamp=1316422298&oauth_consumer_key=ghof7av2vu8hal2hek&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_token=YKx3Ddm7BLmeRRH2fL&oauth_signature=G6rKIEIl9tY8bJAMs4%2F0C5zS4i0%3D HTTP/1.1" 200 110
[19/Sep/2011 09:52:07] "PUT /api/profile/?lang=pt HTTP/1.1" 400 11
I use the same oauth.Client in both calls:
But the put request always fails...
BTW: is there a way i can pass all these auth parameters in the headers?
Thanks in advance!