private static void _trustAllHostnames(){
  if (_hostnameVerifier == null) {
    _hostnameVerifier=new FakeHostnameVerifier();
  }
  HttpsURLConnection.setDefaultHostnameVerifier(_hostnameVerifier);
}

private static void _trustAllHostnames ( ) { if ( _hostnameVerifier == null ) { _hostnameVerifier = new FakeHostnameVerifier ( ) ; } HttpsURLConnection . setDefaultHostnameVerifier ( _hostnameVerifier ) ; }
set the default hostname verifier to an instance of a fake class that trust all hostnames .
