Blog
Home Account

Check url headers in php

2014-01-06 15:57 dennis iversen
Filed under 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 4620 times

© 2026 Blog Stories, notes and ideas

Notice: This website may use non-essential cookies for statistical usage and improving experience.
You may accept or reject any non-essential cookies. Read our privacy policy for more information.