I have many URLs want to create a program that will see if the URL can be connected to and loaded.
I was thinking I could try downloading the source, but if it isn't a site then it wont download it. Is there a more efficient way of doing this?
EDIT: I'm going to use a HttpURLConnection and was wondering what method is fastest.
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
Is post or get better, and why?