I\'m running PHP on a CentOS virtual machine under MacOS X, and any cURL request consistently takes 15s to run:
$c =
There may be something wrong in your system, but I find a way to work around it.
$urldata = parse_url($yourUrl);
$host = $urldata['host'];
$ip = gethostbyname($host);
$new_Url_dns_resolved = str_replace($host,$ip,$yourUrl);
//call the dns resolved url instead of the original url
$c = curl_init($new_Url_dns_resolved);