post
雪灵~
这个作者很懒,什么都没留下…
展开
-
解析HttpServletRequest 的body 内容
public String getChars(HttpServletRequest request) { BufferedReader br = null; StringBuilder sb = new StringBuilder(""); try { br = request.getReader(); String str; while ((str = br.readLine()) != null) { sb.append...原创 2020-06-04 13:40:42 · 753 阅读 · 0 评论 -
接口调用http post请求
public static String doPostJson(String url, String json, String appCredential, String userCredential) throws UnsupportedEncodingException { // 创建连接池 CloseableHttpClient closeableHttpClient = HttpClients.createDefault(); ResponseHandler&l...原创 2020-06-04 11:30:50 · 557 阅读 · 0 评论