@Deprecated public boolean isHttpUrlOK(String urlString){
  try {
    URL e=new URL(urlString);
    HttpURLConnection urlConnection=(HttpURLConnection)e.openConnection();
    urlConnection.setRequestMethod("HEAD");
    int responseCode=urlConnection.getResponseCode();
    if (responseCode == 200) {
      return true;
    }
 else {
      return false;
    }
  }
 catch (  Exception e) {
    return false;
  }
}

@ Deprecated public boolean isHttpUrlOK ( String urlString ) { try { URL e = new URL ( urlString ) ; HttpURLConnection urlConnection = ( HttpURLConnection ) e . openConnection ( ) ; urlConnection . setRequestMethod ( "HEAD" ) ; int responseCode = urlConnection . getResponseCode ( ) ; if ( responseCode == 200 ) { return true ; } else { return false ; } } catch ( Exception e ) { return false ; } }
checks if the url passed , can be contacted or not .
