how to limit post size in tomcat 8? How to make a custom reply for it?
问题 I have this configured in my server.xml file <Connector URIEncoding="UTF-8" connectionTimeout="20000" maxHttpHeaderSize="65536" **maxPostSize="1024"** port="8080" protocol="HTTP/1.1" redirectPort="8443"/> However, requests more than 1 KB pass as if maxPostSize is never set. Can anyone suggest what can cause that? Another thing, I would like to know how to make a custom http reply from tomcat if the post size is more than 1 KB UPDATE Since I have been for so long in this issue. I had the