解决HttpClient提交json格式请求的乱码
PostMethod postMethod = new PostMethod(url);
RequestEntity requestEntity = new StringRequestEntity(requestData,"text/xml","gbk")
postMethod.setRequestEntity(requestEntity);
int httpReturnCold = httpClient.executeMethod(postMethod);
String responseBody = postMethod.getResponseBodyAsString();

1579

被折叠的 条评论
为什么被折叠?



