set( $key, serialize($result), 60 );
return $result;
}
$header_info = getInfo($_REQUEST['url'], $_REQUEST['header']);
if ( ! $header_info ){
echo "
Failure!
Requested URL: \"".htmlentities($_REQUEST['url'])."\"
Couldn't retrieve URL. Please check whether the website is available and try again.
";
} else {
?>
Success!
Requested URL: ""
Host: ""
Request Header:
".htmlentities($header_info[0])."";
?>
Response Header:
";
echo htmlentities($header_info[1]);
echo "";
}
?>
Entries are cached for 60 seconds.
Retrieve HTTP Headers Online!
Check the response headers for websites.
Enter a URL and hit the submit button.