I found an awesome PHP function that will let me work with HTTP headers :) Using PHP’s get_headers we can pull headers of whatever we want, very easily. See the below example. Placing random example here.
<?php
// Usage:: http://yourhost.tld./gethead.php?server=hostname.tld
$targ = $_GET['server'];
$head = get_headers(“http://$targ”, 1);
foreach ( $head as $data ) {
print “<br>$data<br>”;
}
?>