Solved

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

Posted on 2007-11-27
6
722 Views
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
http://www.test.com/action?para1=name¶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?
0
Comment
Question by:JianJunShen
[X]
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
6 Comments
 
LVL 23

Assisted Solution

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

Accepted Solution

by:
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
http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
0
 
LVL 26

Assisted Solution

by:ksivananth
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!
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 92

Assisted Solution

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

Assisted Solution

by:Tomas Helgi Johannsson
Tomas Helgi Johannsson earned 90 total points
ID: 20356703
  Hi!
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
http://forum.java.sun.com/thread.jspa?threadID=720218&messageID=4156991
http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
http://forums.devarticles.com/web-development-40/limit-to-query-string-22206.html

Regards,
  Tomas Helgi
0
 
LVL 26

Assisted Solution

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

739 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