To save your time https://github.com/jetty/jetty.project/pull/12777 Jetty fixes the "bug" of their httpclient. Now you have to httpClient.setMaxRequestHeadersSize