Go Premium for a chance to win a PS4. Enter to Win

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

URI too long - IIS

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
lavan_8
Asked:
lavan_8
1 Solution
 
shalomcCommented:
You may have a problem with browser support for very long URLs.
Explorer supports up to 2K.

ShalomC
0
 
dazzled1Commented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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