Click here to Skip to main content
16,016,605 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to use Response.Redirect(1019characterLongUrl) to redirect the user to another domain. The URL I use is +1k characters long. This works perfectly in Chrome and Firefox. But as soon as I use Internet Explorer the hostname of the url is exchanged.

If the URL I use looks something like:
<span>https://a01-bc-def.com/myDirA/myDirB?myQuery=XYZ...</span>
(note that https changes to http) it would then be malformed in the redirect to
http://localhost:9200/bc-def/myDirA/myDirB?myQuery=XYZ...
or to
http://localhost:9200/myDirA/myDirB?myQuery=XYZ..
(Why it changes between the two mentioned formats, I don't know - but I believe it has something to do with the length of the url I use).

According to several sites found via Google, the maximum allowed length of an URL in IE is 2083 characters. Meaning that my URL should be okay to use. Could it be related to the fact that the URL uses SSL? I've tried sending redirects from HTTP -> HTTPS as well as HTTPS -> HTTPS without any success. If I manually enter the URL it works without any errors.

I've tried using a tinyURL in the redirect but the same error occurs. I've also tried publishing the site to a public server (with and without SSL as mentioned about) but the error remains.

Any thoughts?
Posted

Why not you try to encrypted URL for this?
 
Share this answer
 
Because the specifications I follow requires the URL to remain in clear text.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900