HttpClient
wydhao123
就职于深圳市java工程师
展开
-
HttpClient 访问Https报错hostname in certificate didn't match:
错误:javax.net.ssl.SSLException:hostname in certificate didn't match: != 解决办法:SSLConnectionSocketFactory sslFactory = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocktFactory.ALLOW_ALL_原创 2016-10-09 09:46:29 · 12284 阅读 · 3 评论 -
使用HttpClient4.3.1模拟Http请求与无信任证书访问Https
package com.paic.pmit.core.util;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.util.ArrayList;import java.util.Iterator;import java.util.List;import java.uti原创 2016-10-02 10:21:35 · 3084 阅读 · 0 评论