title: Getting request payload from POST request in Java servlet
body: <p>I have a javascript library that is sending a POST request to my Java servlet, but in the <code>doPost</code> method, I can't seem to get the contents of the request payload. In chrome Developer Tools, all the content is in the Request Payload section in the headers tab, and the content is there, and I know that the POST is being received by the doPost method, but it just comes up blank.</p>
  
  <p>For the <code>HttpServletRequest</code>
  object, what way can I get the data in the request payload?</p>
  
  <p>Doing <code>request.getParameter()</code> or <code>request.getAttributes()</code>
  both end up with no data</p>