使用个人p12证书请求https接口数据
依赖
(图片来源网络,侵删)
org.apache.httpcomponents httpclient 4.5.3
code
package com.hexin.cbas.test; import org.apache.commons.net.util.TrustManagerUtils; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.ssl.NoopHostnameVerifier; import
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。