title: SpringMVC is not recognizing request body parameters if using PUT
body: <p>Maybe this is supposed to not work, but at least I'd like to understand why then. I am passing a simple val=somevalue in the <code>PUT</code> body but spring sends back a <code>400 Bad Request</code> as it does not seem to recognise the val parameter.</p>
  
  <p>Similar request works with <code>POST</code>. Could it be <em>SpringMVC</em> is not recognizing the <code>PUT</code> request body as source for parameters?</p>
  
  <p><code>Content=-Type</code> is set correctly to application/x-www-form-urlencoded in both cases.</p>
  
  <p>The method that spring refuses to call is this:</p>
  
  <pre><code>@RequestMapping(value = "config/{key}", method = RequestMethod.PUT)
  @ResponseBody
  public void configUpdateCreate(final Model model, @PathVariable final String key, @RequestParam final String val,
          final HttpServletResponse response) throws IOException
  {
      //...
  }
  </code></pre>
  
  <p>For completeness, here is the jquery ajax call. I cannot see anything wrong with that. Client is Firefox 4 or Chrome, both show the same result.</p>
  
  <pre><code>$.ajax({
           url:url,
           type:'PUT',
           data:'val=' + encodeURIComponent(configValue),
           success: function(data) {...}
         });      
  </code></pre>
  
  <p>Any ideas?</p>