Android アプリから PHP サーバーにデータを送信して、MySQL にレコードを挿入しようとしています。AndroidManifest.xml に INTERNET 権限を追加しました
私は得るjavax.net.ssl.SSLPeerUnverifiedException: No peer certificate
Android コード
private void senddata(ArrayList<NameValuePair> data)
{
try
{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("https://10.0.2.2/insert222.php");
httppost.setEntity(new UrlEncodedFormEntity(data));
HttpResponse response = httpclient.execute(httppost);
}
catch (Exception e) {
// TODO: handle exception
Log.e("log_tag", "Error: "+e.toString());
}
}
誰でも助けることができますか?