Last Updated: September 09, 2019
·
489
· xwlee

Perform HEAD Request

Simple HEAD request

$url = 'http://www.example.com';
$headers = http_head();
var_dump(http_parse_headers($headers));

You will need to install http php extension

pecl install http