HttpResponse response = httpclient.execute(httppost)执行抛出异常?能帮忙看下吗?
能帮我看下这段代码,
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.abc.com/selectusr.php");
httppost.setEntity(new UrlEncodedFormEntity(nameP));
HttpResponse response = httpclient.execute(httppost); 执行到这里的时候就抛出异常了, 为什么?