hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: how to treat the unknown certificate as trusted one
Date Wed, 06 Dec 2006 06:47:46 GMT
Hello,

>    Protocol myhttps = new Protocol("https",new 
> EasySSLProtocolSocketFactory(), 443);
>    httpClient.getHostConfiguration().setHost("xxx.xxx.com", 443, 
myhttps);
>    int responseCode = httpClient.executeMethod(postMethod);

This will only work if you are using _relative_ URLs like
"/" or "/index.html". Register your protocol as the default
handler for https, as described in the SSL guide.

hope that helps,
  Roland
 


Mime
View raw message