I'm using the latest github code.
This is my php code:
$status = "@LeeronShalev testing: One, Two";
$replytoid = "1786937496";
$twitterObj = new EpiTwitter("wMt3sA5PC8W2EkK7I4juFQ", "eqxAY17ZRjpYUkOXH32nCfb9Mzm1fYWtZxsY7RKZu2U", "41332266-7sV6od4pKcOjWLGMctjWN6ccknLg0VOO60eLc3eft", "ylcmFhT0n3eHaXVYvi2A9MgblXyZwLg91K9QLqxXEGc");
$st = $twitterObj->post_statusesUpdate(array('status' => $status, 'in_reply_to_status_id' => $replytoid));
And that's the HTTP request data:
POST /statuses/update.json HTTP/1.1
Host: twitter.com
Accept: /
Authorization: OAuth realm="http://twitter.com/statuses/update.json",oauth_consumer_key="wMt3sA5PC8W2EkK7I4juFQ",oauth_token="41332266-7sV6od4pKcOjWLGMctjWN6ccknLg0VOO60eLc3eft",oauth_nonce="edc3eee1c4b6147361f2e5b15c8f158b",oauth_timestamp="1242827526",oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_signature="37G8Se8law9udqVG39plTHpSEas%3D"
Content-Length: 81
Content-Type: application/x-www-form-urlencoded
status=%40LeeronShalev+testing%3A+One%2C+Two&in_reply_to_status_id=1786937496
HTTP/1.1 401 Unauthorized
Date: Wed, 20 May 2009 13:52:06 GMT
Server: hi
Status: 401 Unauthorized
Cache-Control: no-cache, max-age=300
Content-Type: text/html; charset=utf-8
Content-Length: 43
Set-Cookie: _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com; path=/
Expires: Wed, 20 May 2009 13:57:06 GMT
Vary: Accept-Encoding
Connection: close
Failed to validate oauth signature or token
When I'm omiting the in_reply_to_status_id parameter the request works fine.
PHP code:
$status = "testing: One, Two";
$twitterObj = new EpiTwitter("wMt3sA5PC8W2EkK7I4juFQ", "eqxAY17ZRjpYUkOXH32nCfb9Mzm1fYWtZxsY7RKZu2U", "41332266-7sV6od4pKcOjWLGMctjWN6ccknLg0VOO60eLc3eft", "ylcmFhT0n3eHaXVYvi2A9MgblXyZwLg91K9QLqxXEGc");
$st = $twitterObj->post_statusesUpdate(array('status' => $status));
Request data:
POST /statuses/update.json HTTP/1.1
Host: twitter.com
Accept: /
Authorization: OAuth realm="http://twitter.com/statuses/update.json",oauth_consumer_key="wMt3sA5PC8W2EkK7I4juFQ",oauth_token="41332266-7sV6od4pKcOjWLGMctjWN6ccknLg0VOO60eLc3eft",oauth_nonce="2bf4d5326d873f83d0d175c4b0d06798",oauth_timestamp="1242828075",oauth_signature_method="HMAC-SHA1",oauth_version="1.0",oauth_signature="F%2BWiEu2BHl1T0FbnO3H446l8Vo4%3D"
Content-Length: 28
Content-Type: application/x-www-form-urlencoded
status=testing%3A+One%2C+Two
HTTP/1.1 200 OK
Date: Wed, 20 May 2009 14:01:17 GMT
Server: hi
Last-Modified: Wed, 20 May 2009 14:01:18 GMT
Status: 200 OK
ETag: "6c85095f8e9ef5e72fa15b7b9203b802"
Pragma: no-cache
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Content-Type: application/json; charset=utf-8
Content-Length: 996
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Revision: 9e993dc809403467fb717e688f5ed2ed55d6c9b3
X-Transaction: 1242828078-49194-19492
Set-Cookie: _twitter_sess=BAh7BzoHaWQiJTg2NjUzNmVlZjVhZDFkNjVkMTIyNTFjYTVjNTkyMGJjIgpm%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG%250AOgpAdXNlZHsA--15dba2a59b16c585966c03b824abe0881b9c197d; domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close
{"in_reply_to_status_id":null,"created_at":"Wed May 20 14:01:18 +0000 2009","user":{"profile_background_image_url":"http://static.twitter.com/images/themes/theme1/bg.gif","description":null,"time_zone":null,"utc_offset":null,"created_at":"Wed May 20 10:25:16 +0000 2009","profile_link_color":"0000ff","profile_background_tile":false,"profile_image_url":"http://static.twitter.com/images/default_profile_normal.png","profile_background_color":"9ae4e8","favourites_count":0,"url":null,"screen_name":"leeronTest","name":"Leeron's Test User","following":false,"notifications":false,"statuses_count":1,"profile_sidebar_fill_color":"e0ff92","protected":false,"profile_sidebar_border_color":"87bc44","followers_count":0,"friends_count":0,"location":null,"id":41332266,"profile_text_color":"000000"},"truncated":false,"text":"testing: One, Two","in_reply_to_user_id":null,"favorited":false,"in_reply_to_screen_name":null,"id":1859360957,"source":"<a href="http://toki.dev">Leeron Dev</a>"}