Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

maximum parameter size  RSS feed

 
Maxim Katcharov
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I set up a test in a jsp to make things easier on me, but then noticed that request.getParameter started returning null when the parameter's length was somewhere between 600k and 100k. Out of curiousity, what's the maximum size of parameter that tomcat will take?
 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your form use GET or POST ?
You can usually send much more data with post.
 
Maxim Katcharov
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using POST. GET loses it at the max length of the URI, which is long before 600K. I think it's a tomcat (or maybe firefox?) issue, but I'm not sure. When I pass some limit above 600000 characters, all the parameters vanish.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should use getInputStream or getWriter instead of the HttpServletRequest parameter methods. That would mean you have to parse the data stream yourself and you might have to do it in a servlet rather than a JSP.
I would expect error messages to appear in the log files if the parameter methods fail to cope.
Bill
[ May 22, 2005: Message edited by: William Brogden ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!