Last Updated: September 09, 2019
·
488
· 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