Hi Tom,

Thank you very much for helping me, but I'm still with failures.

Now the response from Twitter is different, but I can't say it's
because I've improve my code...

I've added your recommendations, basicaly:

.- str_replace improvements
.- delete consumer secret key from request
.- set the authorization header
.- not urlencoding again the post body

Now the response is as follows:

HTTP/1.1 401 Unauthorized
Date: Sun, 05 Sep 2010 10:15:08 GMT
Server: hi
Status: 401 Unauthorized
X-Transaction: 1283681708-66911-2656
Last-Modified: Sun, 05 Sep 2010 10:15:08 GMT
X-Runtime: 0.00720
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-
Set-Cookie: k=; path=/; expires=Sun, 12-
Sep-10 10:15:08 GMT; domain=.twitter.com
Set-Cookie: guest_id=128368170822042500; path=/; expires=Tue, 05 Oct
2010 10:15:08 GMT
domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close

Failed to validate oauth signature and token

Any idea?


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: 

Reply via email to