Using PHP, I want to do a head request of curl -I option.
This is how I do a normal curl request:
$url = 'https://domain.com';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch);
curl_close($ch);
How can I add the head -I option?