1

我的服务器上有一个 GoDaddy ssl 证书,当我尝试使用我的 android 应用程序访问该 url 时,它会引发异常:“不受信任的服务器证书”

我的代码是:

HttpPost post = new HttpPost(url);
HttpClient client = new DefaultHttpClient();
HttpResponse response;
response = client.execute(post);
HttpEntity entity = response.getEntity();
return(EntityUtils.toString(entity));

谢谢

4

0 回答 0