HttpPost post = new HttpPost(Constants.commit_my_commentURL);
NameValuePair pairs1 = new BasicNameValuePair("vid",vid);
pairs.add(pairs1);
pairs.add(pairs2);
pairs.add(pairs3);
try {
HttpEntity entity = new UrlEncodedFormEntity(pairs, HTTP.UTF_8);// 设置编码,防止中午乱码
post.setEntity(entity);
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpResponse response = httpClient.execute(post);
// 服务端返回的数据
String data = EntityUtils.toString(response.getEntity());