Minimal PHP Curl Example

Posted by in Lagom

<?php
$curl = curl_init('https://www.google.se');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($curl);
curl_close($curl);
echo $data;