Thx worked
On 20 Jul., 20:27, Chad Etzel wrote:
> Ah, I think I may have an idea...
>
> You both are setting the status in the query string (more like a GET
> request) and setting curl_setopt($ch, CURLOPT_POST, 1).
>
> But, It doesn't look like either of you are setting a POSTFIELDS
> option. I
Ah, I think I may have an idea...
You both are setting the status in the query string (more like a GET
request) and setting curl_setopt($ch, CURLOPT_POST, 1).
But, It doesn't look like either of you are setting a POSTFIELDS
option. I got http_code=>0 sometime ago when I realized I was not
sendi
nobody an idea?
I have same issue...
with curl_setopt($ch, CURLOPT_POST, 1);
i get this
* About to connect() to twitter.com port 80 (#0)
* Trying 168.143.162.100... * connected
* Connected to twitter.com (168.143.162.100) port 80 (#0)
* Server auth using Basic with user 'x'
> POST
> /statuses/update.xml
So as I said when I test my script localy on my win32
it works fine I get this:
Array
(
[url] =>
http://twitter.com/statuses/update.xml?status=It%27s+made+of+a+module+and+a+profile+application
[content_type] => application/xml; charset=utf-8
[http_code] => 200
[header_size] => 8
OK , I was testing on a shared host
I finally tested locally on a win32 with Curl and it worked fine
Twitter sending back a http_code 200 on successfull tweet.
Any Idea why the same script used on my host receives a http_code 0
whatever happens?
Thanks a lot!
With CURLOPT_VERBOSE option set to 1, you should see the whole http
communication. It would help to understand what's going on.You're probably
not outputing errors (don't see any http trace) so try to set the
CURLOPT_STDERR option to some file PHP can write to, and send us its content
(remind to hi
Hi thank you both of you for your quick replies!
Yes Zero means denied but the tweet is posted and listed fine
It is not sometimes, it is always... unfortunately.
CURLOPT_VERBOSE option is 1 and here is what my postToTwitter function
looks like:
function postToTwitter($username,$password,$message
An HTTP code in cURL of 0 usually means your request is being denied
by Twitter at the network equipment level. In other words, your
connection is refused. This sometimes happens when the Twitter network
is overloaded.
On Jul 12, 2:15 am, nordmograph wrote:
> Hi there , I'm new to this group, s
Set CURLOPT_VERBOSE option to 1, and copy / paste the output here
(think to hide the auth part).
2009/7/12, nordmograph :
>
> Hi there , I'm new to this group, so hello everyone,
> I'm tryng to set my first (php) use of the twitter API using CUrl and
> I'm experiencing a strange behaviour:
>
> I
10 matches
Mail list logo