Simply set URL and execute cURL request. Let see the bellow example.

$url = "https://www.example.com";

$curl = curl_init();

curl_setopt($curl,CURLOPT_URL,$url);

curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);

$result = curl_exec($curl);

curl_close($curl);

var_dump($result);