}
((DefaultHttpClient)httpClient).setCookieStore(cookieStore);
// Prepare SSL trust
HostnameVerifier hostnameVerifier = org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;
SSLSocketFactory sslsf = new SSLSocketFactory(new TrustStrategy() {
public boolean isTrusted(final X509Certificate[] chain, String authType) throws CertificateException {
return true;
}
}, (X509HostnameVerifier) hostnameVerifier);
if (SSL_TRUSTED || trustAllSsl) {