我想通过wifi通过Android上传HTTP服务器将一些数据上传到服务器。我正在使用
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(address);
//then I assign name value pairs using httppost.setEntity
HttpResponse response = httpclient.execute(httppost);
执行HTTP Post,但它会抛出IOException。我已经在权限中添加了android.permission.INTERNET。
有人能告诉wat出错吗?