Hi,

Finally fixed.

I missed URLEncode the signature in Authorization header.
FYI, this signature part is not required to be sent as part of Authorization
header when we use any GET request.

Thanks,
Anandhev


On Mon, Oct 25, 2010 at 5:35 PM, Anandhev <anand...@gmail.com> wrote:

> Hi,
>
> I get the error while sending "Status Update" request. Details are
> shown below.
>
> Sometimes, I get proper responses when i exclude "Authorization
> signature ". But most of the time, I get the following error.
>
> My request and response is attached. Kindly help us to fix this issue.
>
> Thanks,
>
> ------Request --------
> POST /1/statuses/update.xml?status=success HTTP/1.1
> Content-Type: application/x-www-form-urlencoded
> Authorization: OAuth realm="Twitter
>
> API",oauth_version="1.0",oauth_nonce="981E91F",oauth_timestamp="1288007529",oauth_signature_method="HMAC-
>
> SHA1",oauth_consumer_key="7vMm4YKEgAWhLCkkvpjchA",oauth_consumer_secret="BX4LciPyn0czUKvQXQWhy7YUyzGqywqFO9UclJ5mX0",oauth_token="146432631-
>
> AsYHO57Hyrh1m94f6DQhUkWsR8LMtTHlznHCWJ7C",oauth_token_secret="ZJpq4ZtIb9iODytUHGUHBwC5pnVQXhkEcIX8b58I1A",oauth_signature="FyoCCQwsu5XZHR09Dx6fV2Oh
> +uw="
> Host: api.twitter.com
> Content-Length: 0
> Connection: Keep-Alive
>
>
> ------Response--------
> HTTP/1.1 500 Internal Server Error
> Date: Mon, 25 Oct 2010 11:54:56 GMT
> Server: hi
> Status: 500 Internal Server Error
> Content-Type: text/html; charset=utf-8
> Content-Length: 4659
> Cache-Control: no-cache, max-age=300
> Set-Cookie: k=122.165.69.143.1288007695731989; path=/; expires=Mon, 01-
> Nov-10 11:54:55 GMT; domain=.twitter.com
> Set-Cookie: guest_id=128800769629662265; path=/; expires=Wed, 24 Nov
> 2010 11:54:56 GMT
> Set-Cookie:
> _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
> %250ASGFzaHsABjoKQHVzZWR7AA%253D
> %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
> path=/
> Expires: Mon, 25 Oct 2010 11:59:55 GMT
> Vary: Accept-Encoding
> Connection: close
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to