Solved

URI too long - IIS

Posted on 2004-04-25
2
574 Views
Last Modified: 2008-03-06
Hi,
Could some one tell me what is the maximum length for the URL, which IIS permits.
If the URL exceeds a certain limit we get the 'URI too long' error.
Is there any way we can reconfigure IIS to increase the maximum length??
Thanks in advance...
0
Comment
Question by:lavan_8
2 Comments
 
LVL 33

Expert Comment

by:shalomc
ID: 10915733
You may have a problem with browser support for very long URLs.
Explorer supports up to 2K.

ShalomC
0
 
LVL 1

Accepted Solution

by:
dazzled1 earned 50 total points
ID: 10916451
Passing a URL (URI) via a form and using the GET method is a good way of getting around URL length restrictions...

You can post much longer urls using this method.


eg.


<FORM name="frmMyForm" action="myPage.htm" method="GET">
<INPUT type="HIDDEN" name="myVar1" value="Hello">
<INPUT type="HIDDEN" name="myVar2" value="Lavan">
<INPUT type="HIDDEN" name="myVar3" value="8">
</FORM>


Then when you come to place your link use javascript to submit the form.

EG.

<A href="javascript: document.frmMyForm.submit;">My Link</A>


This would take you to

/myPage.htm?myVar1=hello&myVar2=Lavan&myVar3=8


0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice on Xojo as a development tool over VB. 4 55
Where can I ask about my ASP.NET MVC project? 6 36
When should I use a controller? 3 34
ebay seller html tags 2 25
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

773 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