|
-
Oct 14th, 2010, 06:48 AM
#1
Thread Starter
Lively Member
Asp.net 2.0: Response.Redirect() rewrites hostname in IE(8)?
Hello!
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: https://a01-bc-def.com/myDirA/myDirB?myQuery=XYZ... (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.
EDIT: I've also tried publishing the site to a public server but the error remains.
Any thoughts?
Cheers,
/Zolomon
Last edited by Zolomon; Oct 14th, 2010 at 06:50 AM.
Reason: Adding info...
-
Oct 14th, 2010, 09:25 AM
#2
Thread Starter
Lively Member
Re: Asp.net 2.0: Response.Redirect() rewrites hostname in IE(8)?
So far I've managed to work around the problem by using Response.AppendHeader("Refresh", String.Format("0; url={0}", url)) to reload the website and then add a Refresh meta tag that will send the user to the specified url.
Still curious what causes the error!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|