Displaying differences for changeset
 
display as  

src/java/m/rusle2/R2Run.java

@@ -278,17 +278,13 @@
   }
 
 
-  public static boolean exists(String URLName) {
-    try {
+  public static boolean exists(String URLName) throws IOException{
       HttpURLConnection.setFollowRedirects(false);
       // note : you may also need
       //        HttpURLConnection.setInstanceFollowRedirects(false)
       HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection();
-      con.setRequestMethod("HEAD");
+      con.setRequestMethod("GET");
       return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
-    } catch (IOException e) {
-      return false;
-    }
   }