| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Problem with curl_exec and server setup
From: Yazmin Media <ywickham_at_gmail.com>
Date: Wed, 13 May 2009 11:55:14 -0400
I'm working with the Twitter api and running into a weird issue with curl.
So I need help troubleshooting, I'm just not sure where to start.
This is what is going on...using PHP, I know that I can successfully get a
$ch = curl_init();
$xml = curl_exec($ch);
$data = simplexml_load_string($xml);
However, when I send an update, the same code, with the addition of a line
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
$data = simplexml_load_string($xml);
(I tested that by adding a var_dump($data) after the last line.)
If I add:
$Headers = curl_getinfo($ch);
I also get:
array(19) {
Since a successful update should only return int(200) for http_code, I then
var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE));
which returned int(0). I also checked the Twitter account and saw that the
At that point, I was told that it looks like I'm possibly getting return
The class I'm working with was written by David Billingham and can be found
http://twitter.slawcup.com/twitter.class.phps
I am running the following:
- OSX 10.5.6
Since the code works as is on another server, I thought it might have
Thanks!
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info