@@ -0,0 +1,1090 @@
+%0Apublic class HttpTestingUtil %7B%0A%0A  private static DefaultHttpClient getNewHttpClient() %7B%0A          try %7B%0A              KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());%0A              trustStore.load(null, null);%0A  %0A              SSLSocketFactory sf = new HotelSSLSocketFactory(trustStore);%0A              sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);%0A  %0A              HttpParams params = new BasicHttpParams();%0A              HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);%0A              HttpProtocolParams.setContentCharset(params, HTTP.UTF_8);%0A  %0A              SchemeRegistry registry = new SchemeRegistry();%0A              registry.register(new Scheme(%22http%22, PlainSocketFactory.getSocketFactory(), 80));%0A              registry.register(new Scheme(%22https%22, sf, 443));%0A  %0A              ClientConnectionManager ccm = new ThreadSafeClientConnManager(params, registry);%0A  %0A              return new DefaultHttpClient(ccm, params);%0A          %7D catch (Exception e) %7B%0A              return new DefaultHttpClient();%0A          %7D%0A      %7D%0A    %7D%0A

Create HttpTestingUtil.java