what's the limit for query parameter, a servlet question

Posted on 2007-11-27
Last Modified: 2013-11-24
Does someone know the limit of query string of servlet's get method? For example, I directly my webpage to¶2=test  How long Can I my query string be? From where the length is calculated, in the example, does the length caculated from http, www, action or para1?
Question by:JianJunShen
LVL 23

Assisted Solution

by:Ashish Patel
Ashish Patel earned 170 total points
ID: 20356679
Generally its 256 characters
LVL 23

Accepted Solution

Ashish Patel earned 170 total points
ID: 20356681
View the link below. There is noting about java or asp or .net its all about w3c defination
LVL 26

Assisted Solution

ksivananth earned 160 total points
ID: 20356685
basically the restriction comes from the browser, envirnoment and wbeserver...

I think, in win IE, it is 1024 chars!
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

LVL 92

Assisted Solution

objects earned 80 total points
ID: 20356696
its browser dependent
keeping it under 256 is pretty safe
LVL 25

Assisted Solution

by:Tomas Helgi Johannsson
Tomas Helgi Johannsson earned 90 total points
ID: 20356703
It depends on the client what the supported length of URL is.
However URLs are capped at 255 characters due to many old proxies and other http servers
that don't support larger URLs than 255 chars.
See here for more detail

  Tomas Helgi
LVL 26

Assisted Solution

ksivananth earned 160 total points
ID: 20356710
looks like 2048 in IE, Win

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java imports not found 4 47
Html Table Looping (part 2) 5 34
Java Eclipse Loop 3 28
Java array 21 76
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question