File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes maximum number of parameters that can be passed through an HTTP request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "maximum number of parameters that can be passed through an HTTP request" Watch "maximum number of parameters that can be passed through an HTTP request" New topic
Author

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

priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
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

Joined: Oct 27, 2005
Posts: 19783
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maximum number of parameters that can be passed through an HTTP request