Thanks for your quick answer. I have check the time stamp again and got it solved. I should not use the local time.
After I change it to universal time, it works. To my surprise, there is no time zone specification in the http://dev.twitter.com/auth#signing-requests . I suggest someone should add the time zone info to the document. On Jun 30, 9:56 pm, Taylor Singletary <[email protected]> wrote: > Hi Slavik, > > Happy to help. Are you able to share the signature base string that goes > with this request? Do you know if the server/system you're executing this > from has a clock in sync with Twitter's? (We offer the current date / time > in the HTTP response to failed and successful requests). I take it your > Authorization header doesn't actually contain the line break seen there? > > Thanks, > Taylor > > > > On Wed, Jun 30, 2010 at 3:01 AM, slavik <[email protected]> wrote: > > I am writting a client on Symbian. > > > There is no lib for the platform, so I write one. However, I have not > > been successful yet. > > > When I post tohttp://api.twitter.com/oauth/request_token, I always > > get "Failed to validate oauth signature and token". > > > I have check the time and the signature value according to the > > >https://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signi... > > They are all right. But it just don't work. > > > Could anybody help me? > > > The following is what I posted > > > POST /oauth/request_token HTTP/1.1 > > Host: api.twitter.com > > Authorization: OAuth > > > oauth_nonce="QP70eNmVz8jvdPevU3oJD2AfF7R7odC2XJcn4XlZJqk",oauth_signature_m > > ethod="HMAC- > > > SHA1",oauth_timestamp="1277790519",oauth_consumer_key="5E1f**************QB > > g",oauth_version="1.0",oauth_signature="neYefd > > %2FM2fNwj%2BVyDW1P7v0M2xk%3D" > > Content-Length: 0 > > > HTTP/1.1 401 Unauthorized > > Date: Wed, 30 Jun 2010 09:49:29 GMT > > Server: hi > > Status: 401 Unauthorized > > X-Transaction: 1277891369-55674-5200 > > Last-Modified: Wed, 30 Jun 2010 09:49:29 GMT > > X-Runtime: 0.00588 > > Content-Type: text/html; charset=utf-8 > > Content-Length: 44 > > Pragma: no-cache > > X-Revision: DEV > > Expires: Tue, 31 Mar 1981 05:00:00 GMT > > Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- > > check=0 > > Set-Cookie: k=72.13.82.125.1277891369172474; path=/; expires=Wed, 07- > > Jul-10 09:49:29 GMT; domain=.twitter.com > > Set-Cookie: guest_id=127789136917890129; path=/; expires=Fri, 30 Jul > > 2010 09:49:29 GMT > > Set-Cookie: > > _twitter_sess=BAh7CToRdHJhbnNfcHJvbXB0MDoPY3JlYXRlZF9hdGwrCNvYQogpAToHaWQi > > %250AJTlkZWMwNzNmY2NlYjE4Y2U1MWE5ZTgyMTJlYWM5M2UyIgpmbGFzaElDOidB > > > %250AY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0233aacf > > da88d179166546d965bad353ad8dda38; > > domain=.twitter.com; path=/ > > Vary: Accept-Encoding > > Connection: close > > > Failed to validate oauth signature and token
