How to retrieve raw post data from HttpServletRequest in java
The request body is available as byte stream by HttpServletRequest#getInputStream(): InputStream body = request.getInputStream(); // … Or as character stream by HttpServletRequest#getReader(): Reader body = request.getReader(); // … Note that you can read it only once. The client ain’t going to resend the same request multiple times. Calling getParameter() and so on will implicitly also … Read more