标签:
public String readPostData(HttpServletRequest request) { StringBuilder result = new StringBuilder(); try { String line; BufferedReader reader = request.getReader(); while (null != (line = reader.readLine())) { result.append(line); } } catch (Exception e) { Log.info(e.getMessage()); } return result.toString(); }
Java读取HttpServletRequest的post数据流
标签:
原文地址:http://my.oschina.net/u/2370543/blog/528877