File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes parameter name / value length issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "parameter name / value length issue" Watch "parameter name / value length issue" New topic

parameter name / value length issue

Lidia Cyc

Joined: Aug 05, 2003
Posts: 25

i do know that there is a length limit of the url (255 chars), so i can't use GET, because i have to pass a high number of parameters, which names are 9 chars long and values are 21 chars long.

i'm wondering if there are any limits on the parameter name/value length, or a total length/size of parameters that can be passed without being truncated by server, or something like this....

i can't find in api that there is any limit, but still, if my app designed the way it needs to pass a lot of parameters with long names (9 chars) and long values (21 chars).

can this cause problems?

if not, is it a good taste to build app that can use POST request only?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32815

It's ok to just use the POST request.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: parameter name / value length issue
jQuery in Action, 3rd edition