摘要: 备注:本处代码使用groovy和httpclient4.3作为例子进行讲述在普通方式下,当使用httpclient进行访问某个网站时,大致使用如下的代码进行访问:CloseableHttpClient httpclient = HttpClients.createDefault();HttpGet httpMethod = new HttpGet(url);response = httpclient.execute(httpMethod);当使用上述代码来访问https的网站时,就会抛出如下的异常:javax.net.ssl.SSLHandshakeException: sun.securit 阅读全文
posted @ 2013-12-24 11:00 dreampursuer 阅读(3461) 评论(0) 推荐(1) 编辑