[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 740
  • Last Modified:

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

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
JianJunShen
Asked:
JianJunShen
6 Solutions
 
Ashish PatelCommented:
Generally its 256 characters
0
 
Ashish PatelCommented:
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
 
ksivananthCommented:
basically the restriction comes from the browser, envirnoment and wbeserver...

I think, in win IE, it is 1024 chars!
0
Industry Leaders: 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!

 
objectsCommented:
its browser dependent
keeping it under 256 is pretty safe
0
 
Tomas Helgi JohannssonCommented:
  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
 
ksivananthCommented:
looks like 2048 in IE, Win
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now