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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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!
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

690 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