この http 接続の問題点を教えてください。これを実行すると「HTTP 問題」が発生します。
public void makeHttpPost(){
try
{
//http post
HttpPost httppost = new HttpPost("http://10.0.2.2/project/login.php");
HttpClient httpclient = new DefaultHttpClient();
httppost.setEntity(new UrlEncodedFormEntity(namevaluepairs));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
}
catch(Exception e)
{
Toast.makeText(getBaseContext(),e.toString() ,Toast.LENGTH_LONG).show();
Toast.makeText(getBaseContext(),"HTTP PROBLEM",Toast.LENGTH_LONG).show();
}
}