jacquagnui / php-twitter

Automatically exported from code.google.com/p/php-twitter
0 stars 0 forks source link

Can't use update method #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use update method.

What is the expected output? What do you see instead?
Some kind of data array. It return NULL instead. In real response message
from twitter, it said via var_dump as "string(76)
"{"request":"\/statuses\/update.json","error":"This method requires a
POST."}"".

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by paiboo...@gmail.com on 28 May 2009 at 4:11

GoogleCodeExporter commented 8 years ago
i can't either put UPDATE method to work

i'm using last version (1.1)

When i do a sequential update call, i don't have a return error, but it doesn't 
work.
But if activate debug mode (var $debug = true;) the following information is 
returned
"HTTP/1.1 400 Bad Request
Date: Mon, 08 Jun 2009 23:08:56 GMT
Server: hi
Last-Modified: Mon, 08 Jun 2009 23:08:56 GMT
Status: 400 Bad Request
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 76
Pragma: no-cache
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Content-Type: application/xml; charset=utf-8
X-RateLimit-Reset: 1244505224
Content-Length: 142
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Revision: ca003380f0e0a3087629d2bd535c1759e6bec18f
X-Transaction: 1244502536-73484-21041
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie:
_twitter_sess=BAh7CToJdXNlcmkEigtaAToTcGFzc3dvcmRfdG9rZW4iLTFmYjc0ZmE5ZGNm%250AY
zE0MjJjNzczMGYzZTNmN2U3YWE1OTk0NDhmYTk6B2lkIiU0NGY2ZWQ3YTk5%250ANmQ4YTUwZGMzZmMy
Y2Q4N2EyYWI0MiIKZmxhc2hJQzonQWN0aW9uQ29udHJv%250AbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHs
ABjoKQHVzZWR7AA%253D%253D--e0dda9b5737222d29b320c9db5f2bacf86b4b7f2;
domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close"

I've already tried with 'json' and 'xml' type.

Any ideias?
Thanks

Original comment by nuno.wer...@gmail.com on 8 Jun 2009 at 11:14

GoogleCodeExporter commented 8 years ago
I'm experiencing the same problem

Original comment by sergio.nasi on 12 Jun 2009 at 9:30

GoogleCodeExporter commented 8 years ago

Original comment by emmenset...@gmail.com on 16 Jun 2009 at 6:29

GoogleCodeExporter commented 8 years ago
Also having the same problem but when using sendDirectMessage

Original comment by marcekl...@gmail.com on 17 Jul 2009 at 4:53

GoogleCodeExporter commented 8 years ago
The same problem here. Have anybody found a quick workaround?

Original comment by graywo...@gmail.com on 14 Aug 2009 at 8:00

GoogleCodeExporter commented 8 years ago
I have the same problem since I upgrade my debian4 to debian5.
I didn't check the cUrl version before but I'm sure that everything is 
configured as 
I did before.
My actual version of cUrl is 7.18.2 with PHP 5.2.6.

Original comment by damien.t...@gmail.com on 17 Sep 2009 at 2:34

GoogleCodeExporter commented 8 years ago
I just find that if you delete the option CURLOPT_NOBODY, update works well.
It seems to nobody force GET request.

To fix it just comment line:771 in twitter.class.php r100

Original comment by damien.t...@gmail.com on 17 Sep 2009 at 4:08

GoogleCodeExporter commented 8 years ago
I installed php 5.2.8 and got the "this method requires a post" error too.

I found that moving lines 714-719 (where the POST arguments are conditionally 
set) to
just before the call to curl_exec resulted in the update method working.

Original comment by David.We...@gmail.com on 23 Sep 2009 at 11:48

GoogleCodeExporter commented 8 years ago
I'm experiencing the same problem

Original comment by cheopsma...@gmail.com on 23 May 2010 at 5:15

GoogleCodeExporter commented 8 years ago
Thanks damien, your workaround works for me!

Original comment by Albert.J...@gmail.com on 7 Aug 2010 at 3:11