HTTP Request being truncated to 8k

Solution Verified - Updated -


  • While making a POST to a request that is over 8k in size, the request is getting truncated to 8k. As a test scenario, we have deployed a small WAR (named TestHeaderApp.war which is attached to this article), and we are trying to send an HTTP header (which is more that 8k in size) through the attached client This throws the following response on the client console:

    RESPONSE: HTTP/1.1 400 Bad Request
    RESPONSE: Date: Wed, 24 Aug 2011 07:35:21 GMT
    RESPONSE: Server: Apache/2.2.14 (Red Hat)
    RESPONSE: Connection: close
    RESPONSE: Content-Type: text/html; charset=iso-8859-1
    RESPONSE: <html><head>
    RESPONSE: <title>400 Bad Request</title>
    RESPONSE: </head><body>
    RESPONSE: <h1>Bad Request</h1>
    RESPONSE: <p>Your browser sent a request that this server could not understand.<br />
    RESPONSE: Size of a request header field exceeds server limit.<br />


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x
  • Apache HTTPD server
    • 2.2
  • mod_jk
    • 1.2.28

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In