I'm using php curl on the server.
function getSite($url){
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
echo curl_error($ch);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
}
getSite("http://www.google.com.br");
getSite("http://www.planalto.gov.br/ccivil_03/Constituicao/Constituicao.htm");
The google site works perfectly but the upland site does not. In localhost the 2 works. What could be happening? The 2 sites are external but only one works (the link of the site of the plateau is correct but neither error of the curl shows) Thank you in advance.