Hi,
I hope maybe someone can see a simple mistake I am making...
I'm just trying to use curl to load fido.ca however, I keep getting a Error 500--Internal Server Error.
Any help would be great!
Thanks,
slevytam
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.fido.ca');
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/");
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$output = curl_exec($ch);
curl_close($ch);
echo $output;