title = "testtwitter" url = "/testtwitter" layout = "default" is_hidden = 0 == getMessage(); exit; }*/ $ch = curl_init(); $url = "https://restcountries.eu/rest/v2/all"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); ////// i was missing this line. $response = curl_exec($ch); curl_close($ch); dd($response); } ?> ==