Error: No Peer certificate
我仅在签名的APK 和 OS 6及更低版本中遇到SSL
证书的问题。目前,我正在使用DefaultHttpClient
来实现API。
我使用过的图书馆:
- httpclient-4.2.5.jar
- httpmime-4.2.1.jar
- httpcore-4.2.4.jar
您可以在下面找到我的代码段:
HttpEntity httpEntity = null;
HttpResponse httpResponse = null;
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url);
httpGet.setHeader(Header,HeaderValue);
httpResponse = httpClient.execute(httpGet);