Error 400: Size of a request header field exceeds server limit

If you get error like this one

Error 400
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.

That means that your browser is trying to send too much at once. Probably, it’s size of the cookies. The easy way to fix it – delete cookies. Of course, you lose all info in the cookies, but at least you can access site again.

If you develop/manage web site and your customers complain of this error message – there are two things to do:

  • Review cookies and limit the size of cookies your application stores in the browser.
  • Increase allowed request size in web server configuration

To increase request size in Apache, add directive LimitRequestFieldSize to the configuration file. Default value is 8190 bytes. To increase it 2 times add
LimitRequestFieldSize 16380
Apache restart is required.

2 Responses to “ “Error 400: Size of a request header field exceeds server limit”

  1. jürgen schmalenbach says:

    Thank you, Andrei.
    You helped me a lot.
    A customer could not access application on https site via iPhone.
    Reason: application stores ‘history data’ in cookie, cookie grows and grows…

  2. Glad to hear! I was really frustrated with that issue myself – that’s the reason of post :D

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>