Revision history [back]

click to hide/show revision 1
initial version

answered 2020-10-12 13:01:16 +0800

cor3000 gravatar image cor3000

ZK Team

when using the built-in method sendRedirect(url) you're limited to HTTP-GET requests and their associated limitations. Usually webservers and java application servers have configurable limits for the maximum URL length, which includes the URL parameters => hence the message (Request header is too large)

Technically it doesn't sound like there's a limit so if your configuration can be savely adapted to what you need, then you might be set with just a few configuration changes.

If changing the server limits is not an option, you already looked into the right direction using HTTP-POST (which allows larger parameters by default - since they are sent in the request body instead of the header).

Instead you need to create a native html form with e.g. (hidden parameters) and post it via javascript in the browser.

here a similar question maybe it already points you in the right direction: https://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit

when using the built-in method sendRedirect(url) you're limited to HTTP-GET requests and their associated limitations. Usually webservers and java application servers have configurable limits for the maximum URL length, which includes the URL parameters => hence the message (Request header is too large)

Technically it doesn't sound like there's a limit so if your configuration can be savely adapted to what you need, then you might be set with just a few configuration changes.

If changing the server limits is not an option, you already looked into the right direction using HTTP-POST (which allows larger parameters by default - since they are sent in the request body instead of the header).header). However POSTing the request from the server won't/can't update the client side browser.

Instead you need to create a native html form with e.g. (hidden (e.g. hidden parameters) and post it via javascript in the browser.

here Here a similar question maybe it already points you in the right direction: https://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More