414 URIs Too Long With Apache Tomcat Eclipse

I have a long uri when I run my request. I use apache tomcat 7.0.42as a server. I know that my request is long, but I want to increase the uri length limit to fulfill my requests. Because I always have

Error 414: the request is too long.

How can i do this? I already tried with maxHttpHeaderin server.xml, but there were no effects. It seems like: when I restart my server using eclispe, "maxHttpHeader" disappears ... why?

<Connector URIEncoding="UTF-8" maxHttpHeaderSize="65536" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

Are there any files to configure or modify to handle this error? I really need to. My request is to fill out a data table.

Thanks in advanced mode.

+4
source share
2 answers

I just pass my request to POST. Now it works!

0
source

when I restart my server using eclispe, "maxHttpHeader" disappears

Using eclipse WTP, your tomcat server configuration is not (only) stored in the conf folder for tomcat installation.

Go to the "Servers" view and double-click on your server, in the "General Information" section you will find the "Path to the configuration" field, pointing to the configuration directory. This is usually a folder in a separate eclipse project (called a server).

After editing server.xmlthere, you can synchronize your server (in the "Servers" view), and the changes should no longer disappear.

: maxHttpHeader: maxHttpHeader 8080 8443. https. 8443.

0

All Articles