Response.Redirect from SSL to non SSL with port drops port.

Tech-Archive recommends: Speed Up your PC by fixing your registry



I have this wierd bizarrre problem that I'm experienceing with the Response.Redirect() method.

I have a site where the users are on a particular page in SSL. When they post the data back, and the processing is done, it then tries to redirect them back to the non-SSL site. But the site is on a non-starndard port number. I place in the Response.Redirect() method the Fully qualified path to the URL and when ASP.NET makes the Response, the response drops the port number, therefore redirecting the user to a 404.

For example:
Users are on a page:
https://www.somefqd.com/selectCustomer.aspx?blahblah=blahblah

they post back some data, and then the aspx page process the data, and then a call to Response.Redirect()

Response.Redirect("http://www.somefqd.com:8080/default.aspx";);

What I end up seeing, using fiddler, the request ends up being http://www.somefd.com/default.aspx.

It's quite strange, becuase I even drop into the debug code and make sure that the string passed to Response.Redirect is the fully qualified path. Any idea's on what is happening here?

Sean
.



Relevant Pages

  • Re: Post with redirect?
    ... How can I force a POST but actually redirect the user as well ... and it can't be done with PHP. ... return $response; ... its a credit card entry form on a completely separate server. ...
    (comp.lang.php)
  • Re: Newbie question about a web server
    ... When responding to the POST data received, it sends a 301 response, no ... I googled for 'http response code 301', and found that it is actually ... You are correct that it is a redirect response. ... especially as it comes up first in a google search. ...
    (comp.lang.python)
  • Re: Redirected request in HttpWebRequest does not maintain specified method!!
    ... XML-RPC client to expect to re-post the content after the redirect, ... redirected URL is just that--a response, ... An HTTP server response is just that: ... Otherwise, Steve, you need to extend the Blogger API to offer a GET ...
    (microsoft.public.dotnet.framework)
  • Re: Query: How do I design an ENTER page?
    ... >it to create a session variable reflecting their response. ... redirect them to the pages you ... Even if they bookmark it, ... it would need some form of protection ...
    (microsoft.public.frontpage.client)
  • Re: Redirected request in HttpWebRequest does not maintain specified method!!
    ... XML-RPC client to expect to re-post the content after the redirect, ... redirected URL is just that--a response, ... An HTTP server response is just that: ... Otherwise, Steve, you need to extend the Blogger API to offer a GET ...
    (microsoft.public.dotnet.languages.csharp)