?
Solved

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

Posted on 2007-11-27
6
Medium Priority
?
744 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
6 Comments
 
LVL 23

Assisted Solution

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

Accepted Solution

by:
Ashish Patel earned 680 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 640 total points
ID: 20356685
basically the restriction comes from the browser, envirnoment and wbeserver...

I think, in win IE, it is 1024 chars!
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 92

Assisted Solution

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

Assisted Solution

by:Tomas Helgi Johannsson
Tomas Helgi Johannsson earned 360 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 640 total points
ID: 20356710
looks like 2048 in IE, Win
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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:
Suggested Courses
Course of the Month3 days, 18 hours left to enroll

599 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