Given a list of urls, I would like to check that each url:
The
Look into cURL. There's a library for PHP.
There's also an executable version of cURL so you could even write the script in bash.