Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the maximum query length allowed in url?

Status
Not open for further replies.

deva12

Programmer
Jul 5, 2002
2
SG
Due to some architectural constraint, i am forced to send the result as a query string in the url. But some how it is chopping of the length. But at the same time if i hardcode value or its not chopping of. can anyone have idea?

Working method
--------------
----
//This method work fine
String a="kkkkkkkkkkkkkkkkkkkkkk"; //my length is 780
response.sendRedirect("
Not Working method
====================
String k=data retrived from mainframe
k.length=780;
response.sendRedirect("
Here in the url i am getting only 247.

Pls note that i need to pass the string in the query.
 
This is dependent on the web server and browser being used. The minimum that is typically supported is 256 characters but many today support more than that. Rewrite your procedure as a POST, there is always a way, and if for some reason there is not then you probably need to review your design.

I can think of at least a couple ways for you to get around your constraint. Write back if you want more details.
 
When u r trying pass values through Query String ,max of 256 characters u can send.Try submitting the page and specify method as post,then u will get all ur form variable and no restrictions in length. Kishore Kumar K
Covansys India
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top