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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -