title: JQuery AJAX POST produce null params in HttpServletRequest on Liberty profile
body: <p>I have an older JAX-RS application that I'm running on IBM Liberty profile 16.0.0.4 with the <strong>jaxrs-2.0</strong> feature.  I'm getting some weird behavior that I can't explain, and need some help.</p>
  
  <p>JAX-RS service code:</p>
  
  <pre><code>@Path("/loadData") 
  @POST
  @Produces("text/plain")
  public String loadData(@Context HttpServletRequest request) {
      String id = request.getParameter("id");
      String email = request.getParameter("email");
  
      // add'l request processing code
  }
  </code></pre>
  
  <p>JQuery code:</p>
  
  <pre><code>$(document).ready(function() {
      var reqData = {id:"123456", email:"user@email.com"};
      $.ajax({
          type: "POST",
          cache: false,
          url: "http://localhost:9080/jaxrs/loadData",
          data: reqData,
          contentType: "application/json",
          dataType: "json",
          timeout: "30",
          beforeSend: function() { ... },
          success: function(data) { .... },
          complete: function(data) { .... }
      });
  });
  </code></pre>
  
  <p>JQuery (in IE) Results:</p>
  
  <pre><code>request.getParameter("id") or ("email") = null;
  request.toString() = org.apache.cxf.jaxrs.impl.HttpServletRequestFilter@f272c8dc
  IOUtils.toString(request.getInputStream) = "id=123456&amp;email=user1%40email.com"
  </code></pre>
  
  <p>SoapUI Results:</p>
  
  <pre><code>request.getParameter("id") = 123456 and ("email") = user@email.com;
  request.toString() = org.apache.cxf.jaxrs.impl.HttpServletRequestFilter@de62638a
  IOUtils.toString(request.getInputStream) = ""
  </code></pre>
  
  <p>I compared the RAW HTTP request in SoapUI and in IE's console, they both appears to be the same, as far as I can tell.  So that's really got me confused, both JQuery and SoapUI are performing POST, but seems in IE's case the query stream is not being parsed into parameters, rather just maintained as a string.  I've tried to mess around with the contentType and request declaration with no effects.  I was originally using JQuery 1.7.1, but I tried on 3.1.1 with no effects.  Has anyone seen this before.  Any help or insights would be really great, thanks!</p>