title: Can't read form data from HttpServletRequest
body: <p>I have a simple xmlHttpRequest that submits a DELETE to a servlet.</p>
  
  <p>Here is the JS:</p>
  
  <pre><code>        function sendDELETE () {
              var http = new XMLHttpRequest();
              var url = "myServlet";
              var params = "param="+document.getElementById("param").value;
              http.open("DELETE", url, false);
  
              //Send the proper header information along with the request
              http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  
              http.onreadystatechange = function() {//Call a function when the state changes.
                  if(http.readyState == 4 &amp;&amp; http.status == 200) {
                  }
              }
              http.send(params);
          }
  </code></pre>
  
  <p>This invoked by an onClick event on a button.</p>
  
  <p>Here is what chrome dev tools show:</p>
  
  <pre><code>Request URL:http://xxxxxx/myServlet
  Request Method:DELETE
  Status Code:200 OK
  Request Headersview source
  Accept:*/*
  Accept-Encoding:gzip,deflate,sdch
  Accept-Language:en-US,en;q=0.8
  Connection:keep-alive
  Content-Length:36
  Content-type:application/x-www-form-urlencoded
  Host:xxxxxxxxx
  Origin:http://xxxxxxx
  Referer:http://xxxxxxxxxxx/main.html
  User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36
  Form Dataview parsed
  param=value
  
  
  Response Headersview source
      Connection:Keep-Alive
      Content-Length:0
      Content-Type:text/html
      Date:Wed, 27 Aug 2014 01:50:10 GMT
      Keep-Alive:timeout=65, max=7998
      Server:Apache-Coyote/1.1
  </code></pre>
  
  <p>By looking at this i can clearly see that the form data has the param=value in the request going OUT</p>
  
  <p>On my server in the <code>doDelete</code> I tried two ways:</p>
  
  <p><code>String param = req.getParameter("param");</code> and</p>
  
  <p><code>String inputMap = CharStreams.toString(req.getReader());
  String [] parts = inputMap.split("=");
  String param = parts[1];</code></p>
  
  <p>But neither works - the 'param' remains null....</p>
  
  <p>What am i doing wrong ?</p>