Hello Eric,
Once I've written an application that checked if a url existed. The primary goal was getting the result from a request to a url.
When the site didn't exist you would get a html page returned with a HTTP 404 error as title. So when you read the html source and search if <title>HTTP 404 Not found</title> exist within this source you will know if the site exists or not(or if it's in the eare or not).
I hope it will help,
Charl