JAVA -tomcat- Request header is too large

前端 未结 8 1686
情歌与酒
情歌与酒 2020-12-30 20:18
INFO: Error parsing HTTP request header
 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: R         


        
8条回答
  •  萌比男神i
    2020-12-30 20:37

    The maximum size of the request and response HTTP header, specified in bytes. If not specified, this attribute is set to 4096 (4 KB).

    To avoid getting Error parsing HTTP request header error you can increase the following value by doing this.

    Go to following location: $TOMCAT_HOME/conf/server.xml

    In server.xml change the HTTP/1.1 Connector entry and set the maxHttpHeaderSize to "65536" (64Kb in bytes) as shown below:

    
    

    Or

    You can use the POST method it can carry upto 2 megabytes according to Tomcat.

    The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).

    Hope this information would help you..

提交回复
热议问题