public static String getPostDataAsString ( HttpServletRequest request ) throws IOException { try ( InputStreamReader reader = new InputStreamReader ( request . getInputStream ( ) , "UTF-8" ) ) { return ( getReaderContentAsString ( reader ) ) ; } }
Reads the POST data from a request into a String and returns it .