• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22850
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic