/**
* 取客户端post上来的参数
* @param request
* @return
* @throws ServletException
* @throws IOException
*/
private String getInputParameter(HttpServletRequest request) throws ServletException, IOException {
StringBuffer sb = null;
BufferedReader br = null;
try {
request.setCharacterEncoding("UTF-8");
br = request.getReader();
String line = null;
sb = new StringBuffer();
while ((line = br.readLine()) != null) {
sb.append(line);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
br.close();
}
return sb.toString();
}
post报文获取xml
最新推荐文章于 2023-04-22 09:26:46 发布