java ee - Limiting the size of client requests in Apache Tomcat -


i wondering best way limit size of requests made single client. example

string password = request.getparameter("password"); 

let's client sending password of length 10,000. perform check on length of string , ignore if larger size 10,000 useless bytes have still made way application. way of limiting size of requests @ lower level in network stack?

according link can remove post size, assume works both ways , can set limit on post size 4kb in server.xml file.

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -