Home Account

Check url headers in php

2014-01-06 15:57 dennis iversen

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

This page has been requested 3325 times