PHP Classes

The method "updateStatus" does not work.

Recommend this page to a friend!

      My Twitter  >  All threads  >  The method "updateStatus" does not work.  >  (Un) Subscribe thread alerts  
Subject:The method "updateStatus" does not work.
Summary:Package rating comment
Messages:3
Author:Hans-Joerg Wahmkow
Date:2010-02-17 19:02:42
Update:2010-05-27 16:06:59
 

Hans-Joerg Wahmkow rated this package as follows:

Utility: Not sure
Consistency: Not sure
Documentation: Not sure
Examples: Not sure

  1. The method "updateStatus" does not work.   Reply   Report abuse  
Picture of Hans-Joerg Wahmkow Hans-Joerg Wahmkow - 2010-02-17 19:02:42
The method "updateStatus" does not work. Twitter requires a POST but the class does a GET.

  2. Re: The method "updateStatus" does not work.   Reply   Report abuse  
Picture of kevin lee kevin lee - 2010-03-09 10:15:58 - In reply to message 1 from Hans-Joerg Wahmkow
Thanks Hans-Joerg, I have the same question,but resolved now. You can edit the line 680 'CURLOPT_GET' to 'CURLOPT_POST' in my_twitter.php.

  3. Re: The method "updateStatus" does not work.   Reply   Report abuse  
Picture of Felipower Andanadas de Ostias Felipower Andanadas de Ostias - 2010-05-27 16:07:00 - In reply to message 2 from kevin lee
I changed the line 680 from CURLOPT_GET to CURLOPT_POST but now it still doesn't work and the returned error is the following:

CURLINFO_HTTP_CODE: 413
'Request Entity Too Large'

Have you got any idea about what is happening?

Thank you.

Those are all the headers returned in function requestToTwitter:

[url] => http://twitter.com/statuses/update.xml?status=sdfg
[content_type] => text/html; charset=iso-8859-1
[http_code] => 413
[header_size] => 154
[request_size] => 220
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.133189
[namelookup_time] => 0.001468
[connect_time] => 0.066865
[pretransfer_time] => 0.066874
[size_upload] => 0
[size_download] => 482
[speed_download] => 3618
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0.133111
[redirect_time] => 0