hubs wrote:
> This is the error code I'm getting:
>
> Warning: simplexml_load_file(http://twitter.com/statuses/followers/
> hubs.xml) [function.simplexml-load-file]: failed to open stream: HTTP
> request failed! HTTP/1.1 401 Unauthorized in /home/.jerrie/hubs/
> artifacting.com/blog/wp-content/pl
hubs wrote:
> I'm a total n00b. Could somebody tell me why this code doesn't work?
>
>
> $uname = 'hubs';
> $pwd = 'bungle';
> $twitter_url = 'http://twitter.com/statuses/followers/
> hubs.xml';
> $curl_handle = curl_init();
> curl
This is the error code I'm getting:
Warning: simplexml_load_file(http://twitter.com/statuses/followers/
hubs.xml) [function.simplexml-load-file]: failed to open stream: HTTP
request failed! HTTP/1.1 401 Unauthorized in /home/.jerrie/hubs/
artifacting.com/blog/wp-content/plugins/runPHP/runPHP.php(
I'm guessing you probably need to make it a POST request:
curl_setopt($ch, CURLOPT_POST, 1);
and yes, you should probably change your password if it wasn't already
changed when you posted :D
For reference, here are all of the curlopts I set when making requests:
curl_setopt($ch, CURLOPT
You also want to obscure any passwords you paste as part of code samples.
On Wed, Dec 24, 2008 at 09:50, Cameron Kaiser wrote:
>
>> I'm a total n00b. Could somebody tell me why this code doesn't work?
>
> Can you be more specific about the exact failure? A trace from a proxy
> such as Charles wo
> I'm a total n00b. Could somebody tell me why this code doesn't work?
Can you be more specific about the exact failure? A trace from a proxy
such as Charles would also be helpful.
--
personal: http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Sys
I'm a total n00b. Could somebody tell me why this code doesn't work?
http://twitter.com/statuses/followers/
hubs.xml';
$curl_handle = curl_init();
curl_setopt($curl_handle,CURLOPT_URL,"$twitter_url");
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,