2024年6月11日发(作者:)

//for(String key:()) {

// (new BasicNameValuePair(key, ing(key)));

//}

     // 将Content-Type设置为application/x-www-form-urlencoded类型

//UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(parameters, "UTF-8");

//ity(formEntity);

// 发送请求

CloseableHttpResponse response = e(httpPost);

if (tusLine().getStatusCode() == 200) {

HttpEntity entity = ity();

string = ng(entity, "utf-8");

}

else

{

string = "操作失败";

return string;

}

// 关闭资源

();

();

return string;

}

}