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/
I'm a total n00b. Could somebody tell me why this code doesn't work?
?php
$uname = 'hubs';
$pwd = 'bungle';
$twitter_url = 'http://twitter.com/statuses/followers/
hubs.xml';
$curl_handle = curl_init();
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
You also want to obscure any passwords you paste as part of code samples.
On Wed, Dec 24, 2008 at 09:50, Cameron Kaiser spec...@floodgap.com 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
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,
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/
hubs wrote:
I'm a total n00b. Could somebody tell me why this code doesn't work?
?php
$uname = 'hubs';
$pwd = 'bungle';
$twitter_url = 'http://twitter.com/statuses/followers/
hubs.xml';
$curl_handle = curl_init();