1
Guys, I’ve tried in every way to capture with php the URL data: https://api.cartolafc.globo.com/time/slug/artilheiroCoral/1 But I can’t, I tried by Curl, I tried to save the returned page, anyway, everything I tried was unsuccessful! Always returns false...
$url = "https://api.cartolafc.globo.com/time/slug/artilheiroCoral/1";
$c = curl_init();
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_URL, $url);
curl_setopt($c, CURLOPT_FRESH_CONNECT, true);
$result = curl_exec($c);
curl_close($c);
var_dump($result);
Since you have tried in many ways I think it would be interesting to include what your attempts have been, after all it is impossible to know what you have tried.
– Inkeliz