Something is missing in php (curl) installation of Virtualmin. cURL does not work properly. When using something like
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, ‘Googlebot/2.1 (http://www.googlebot.com/bot.html)’);
curl_setopt($ch, CURLOPT_URL,“http://www.yahoo.com”);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_REFERER, ‘http://www.google.com/bot.html’);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$html = curl_exec($ch);
curl_close($ch);
it automatically echo $html and show the content.