Home Account

Check url headers in php

06-Jan-2014 15:57:24 dennis

Tags: scripts-and-functions

Here is a very simple script to check a URLs headers:

#!/usr/bin/php
<?php

print_r(get_headers($argv[1]));

Usage:

headers.php http://os-cms.net