• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maximum number of parameters that can be passed through an HTTP request

 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings to all..

Is there any of maximum number of parameters that can be passed through an HTTP request?

That is in my java code if I try to use request.getParameterNames() and if there are around 200 parameters from the HTML form, will it throw any error??

Or Is there any maximum number of controls that can be used in an HTML form?

Any help appreciated

Thanks in advance
priby
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use the POST method there is virtually no limit, although the server may think differently (memory issues etc). 200 parameters should not be a huge problem though.

If you use the GET method you're going to have a problem. Most browsers only allow a limited length of the URL they request. Since GET puts all parameters in the URL that URL can be quite long. If the maximum length is exceeded (and for Internet Explorer this is quite small, 1024 or something like that) then the browser can send a part of the URL for the request, or more likely not send any request at all. IE shows the latter behaviour - I got annoyed by that myself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic