Search code examples
javajspperformance-testing

Request too large in jsp login page


I have developed a Dynamic web project in JSP and servlets and it works fine, but when I try to login to the system it says

Request header is too large

Who can help me?


Solution

  • I Solved it my self! I was using HTTP GET instead of the HTTP POST. Technically I have seen HttpGet will have an issue if the URL length goes beyond 2000 characters. In that case, it's better to use HttpPost or split the URL. Browsers have limits ranging on the 2kb - 8kb