本文共 505 字,大约阅读时间需要 1 分钟。
HttpPost httpPost = new HttpPost(url);如:Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Encoding gzip, deflateAccept-Language zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
StringEntity stringEntity = new StringEntity(data, ToolString.encoding);如:
HttpResponse response = httpClient.execute(httpPost);
转载于:https://blog.51cto.com/1197822/2157329