Original Post
Hi guys/gals, Just a quick question for you. I was just wondering can i use the 'getRef()' method in the Java URL class to check if a URL exists or not? It would look something like this: Thats just a very basic implementation, but I just want you to see what I'm talking about. Thanks for the help guys :) Hauk
//Create a new URL object
URL myURL = new URL(myAddress);
//Check if the URL exists.
myURL.getRef();
System.out.println("The URL exists.");