Form form = Form.form(); for (String s : paramMap.keySet()) { form.add(s, paramMap.get(s)); } try { String content = Request.Post("x.x.x.x:c/x.htm") .connectTimeout(2000) .bodyForm(form.build(), Charset.forName("utf-8")) .execute().returnContent().asString(); JSONObject json = JSONObject.parseObject(content); } catch (Exception e) { } return null;
fluent Request.Post 中文乱码解决
最新推荐文章于 2024-05-20 09:05:23 发布