After the server updates a few days ago I'm having trouble with a curl routine in one of my web pages.
Here is the code:
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
$addy = 'http://moneyweb.profile.co.za/moneyweb/sharedata/data/009429/PriceData_1TM.htm';
curl_setopt($curl_handle, CURLOPT_URL, $addy);
$html = curl_exec($curl_handle);
echo curl_error($curl_handle);
The error returned is "couldn't connect to host" It is possible but unlikely that this this server has blocked me from accessing their site. I can still access other sites from the curl routine. Any help would be appreciated.
Here is the code:
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
$addy = 'http://moneyweb.profile.co.za/moneyweb/sharedata/data/009429/PriceData_1TM.htm';
curl_setopt($curl_handle, CURLOPT_URL, $addy);
$html = curl_exec($curl_handle);
echo curl_error($curl_handle);
The error returned is "couldn't connect to host" It is possible but unlikely that this this server has blocked me from accessing their site. I can still access other sites from the curl routine. Any help would be appreciated.