473,670 Members | 2,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Redire ct from SSL to non SSL with port drops port.

I have this wierd bizarrre problem that I'm experienceing with the
Response.Redire ct() 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.Redire ct() 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/selectCustom...hblah=blahblah

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

Response.Redire ct("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.Redire ct is the fully qualified
path. Any idea's on what is happening here?

Sean
Nov 19 '05 #1
1 2342
Sean Wolfe wrote:
I have this wierd bizarrre problem that I'm experienceing with the
Response.Redire ct() 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.Redire ct() 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/selectCustom...hblah=blahblah

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

Response.Redire ct("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.Redire ct is the fully
qualified path. Any idea's on what is happening here?


Actually, this problem is not that bizarre. I've been there twice
already ;-)

This will happen for example
- if the HTTP Location header produced by the redirecting code is
accidentally relative or
- a firewall or proxy incorrectly translates port numbers from an
internal network to the Internet or vice versa.

I suggest to ask your networking guys to help you with this.

Cheers,
--
http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3899
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect "http://www.domain2.com/VDIR2/table.asp" & "?PubID=" & PubID & "&PubName=" & PubName The query string is data to open a DB. the page displays
0
1296
by: Kenneth Keeley | last post by:
Hi, I have a ASP page on my web Site that has the following code in it. Response.Redirect ("Validation.asp?BookingNo=45656756") This code works fine most of the time. I have found cases when the browser drops the file extension of of the file leaving the Url as something like "Validation?BookingNo=45656756" and of course the browser then fails to find the correct web page. I have noted that the problem has occured you a user that is...
6
4317
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if a cookie exists, if it doesn't I redirect to a login screen.
3
818
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here is the code: If (sServiceCenter = "*ALL") Then sServiceCenter = "%"
0
1794
by: Sanjay Patil | last post by:
Hi , I am using IBuySpay Portal modified code. Public page of the web site uses nonssl port. Once user is logged in I am transferring to page which uses ssl port. During this process I am using resposne.redirect to transfer user to different page. I am getting an error, page cannot be displayed.
1
4922
by: David Morgan | last post by:
Hello Apologies for the cross-post, but I am not sure where the problem lies. We have an ASP based website where we redirect users to MMS Publishing Points. So, guy clicks on http:// .asp link, we do a db update, then use Response.Redirect to redirect them to a mms:// URL.
5
4562
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
4
11425
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each time. Is this a flaw in the XMLHTTP Object? How can I force the session to remain the same after a...
9
4341
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case). The browser then makes a new request to the server to redirect itself to abcd.asp after which the user gets redirected to abcd.asp. But in case of Server.Execute (or Server.Transfer), when the server
0
8469
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8592
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7419
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5684
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.