when I use curl to get the content of an html page, I got a wired content which look like a script. Can you tell me what's wrong with my code, and what is this wired content ?
There is my controller :
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'https://twitter.com',
));
$data = curl_exec($curl);
dd($data);
curl_close($curl);
And there is what it's look like in the console.
Thank you for all of your answers.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire