Sto cercando di inserire un record in MySQL con la pubblicazione di dati a un server PHP da un app Android. Ho aggiunto il permesso Internet per AndroidManifest.xmljavax.net.ssl.sslpeerunverifiedexception nessun certificato pari
ottengo javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
codice di 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());
}
}
Qualcuno può aiutarmi?
hai risolto il problema o sei ancora in sospeso? – Dev