title: Jersey/Grizzly POST fails for large URI
body: <p>Relevant: <a href="https://stackoverflow.com/questions/2063666/maximum-uri-length-in-grizzly-glassfish-and-tomcat">this</a> and <a href="https://stackoverflow.com/questions/11653054/bad-request-when-sending-a-long-http-post-request-with-jersey">that</a></p>
  
  <p>I'm developing a POST webservice (jersey/grizzly, for research purposes only) which should be able to handle large URIs. But if a URI exceeds above 8000 characters I get a 400 Bad Request Exception with no further explanation. I debugged/tracked it down to the grizzly maxHttpHeaderSize attribute. I tried to set this attribute but failed. Here is how I start the server and the request:</p>
  
  <pre><code>GrizzlyServerFactory.createHttpServer(BASE_URI, new PackagesResourceConfig("org.test"));
  
  JSONObject s = new JSONObject(webResource.queryParams(queryParams).post(String.class));
  </code></pre>
  
  <p>Thank you for your help!
  Cheers,
  Daniel</p>