[Mono-bugs] [Bug 61218][Nor] Changed - Problem redirecting from https to http

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 15 Jul 2004 14:54:51 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=61218

--- shadow/61218	2004-07-15 14:17:21.000000000 -0400
+++ shadow/61218.tmp.15436	2004-07-15 14:54:51.000000000 -0400
@@ -1,21 +1,22 @@
 Bug#: 61218
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: REOPENED   
+Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: System
-AssignedTo: sebastien@ximian.com                            
+AssignedTo: gonzalo@ximian.com                            
 ReportedBy: miguelanxo@telefonica.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
+Cc: 
 Summary: Problem redirecting from https to http
 
 Description of Problem:
 
 HttpWebResponse timeouts randomly when dealing with https uris
 
@@ -485,6 +486,21 @@
 So it indeed look like we're not redirecting correctly. 
 
 ------- Additional Comments From sebastien@ximian.com  2004-07-15 14:17 -------
 According to ethereal there is no HTTP traffic (only SSL) during the
 session. Current best guess is that the redirect only works if we
 change host (and don't if we keep the same host).
+
+------- Additional Comments From sebastien@ximian.com  2004-07-15 14:54 -------
+Changing line 841 in HttpWebRequest.cs from
+
+hostChanged = (actualUri.Host != host);
+
+to
+
+hostChanged = true;
+
+"fix" the problem. 
+
+This means that condition cannot be limited to the host (which make
+sense) but should also include the port (and probably other things
+like the protocol).