View Single Post
Old 07-01-2008, 11:25 AM   #8 (permalink)
Jenski
The Wanderer
 
Join Date: Apr 2008
Location: Cloud 9
Posts: 15
Thanks: 0
Jenski is on a distinguished road
Default

HA! FOUND IT!!!!!

I didn't configure our networks Proxy Server in the options!!

If anybody else has this problem here is the solution:
Code:
$proxy="<proxy_ip>:<proxy_port_no>";
$ch = curl_init('http://www.google.co.uk/'); // the target
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return the page
$result = curl_exec($ch); // executing the cURL
curl_close($ch); // Closing connection
echo $result;
Hope this helps somebody

Jen
Jenski is offline  
Reply With Quote