[Mono-bugs] [Bug 54543][Wis] New - WebRequest/WebResponse don't handle redirect

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 18 Feb 2004 14:41:15 -0500 (EST)


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 james@ximian.com.

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

--- shadow/54543	2004-02-18 14:41:15.000000000 -0500
+++ shadow/54543.tmp.26397	2004-02-18 14:41:15.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 54543
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: james@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WebRequest/WebResponse don't handle redirect
+
+When encountering a 302 http response, WebRequest/Response do not
+automagically redirect to the correct URI, or throw a reasonable exception.
+ Below is the stack trace when the attached test case is run.
+
+Unhandled Exception: System.Net.WebException: Error getting response stream
+---> System.Exception:
+in <0x000ee> System.Net.WebConnection:HandleError
+(System.Net.WebExceptionStatus,System.Exception)
+--- End of inner exception stack trace ---
+ 
+in <0x0007a> System.Net.HttpWebRequest:CheckFinalStatus
+(System.Net.WebAsyncResult)
+in <0x00065> (wrapper remoting-invoke-with-check)
+System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult)
+in <0x001d5> System.Net.HttpWebRequest:EndGetResponse (System.IAsyncResult)
+in <0x00077> System.Net.HttpWebRequest:GetResponse ()
+in <0x00037> TestCase:Main (string[])
+
+
+
+Here is the tcp trace from the session:
+
+GET / HTTP/1.1
+Host: www.snorp.net
+
+HTTP/1.1 302
+Date: Wed, 18 Feb 2004 19:25:59 GMT
+Server: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
+mod_bwlimited/1.4 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a
+PHP-CGI/0.1b
+X-Powered-By: PHP/4.3.4
+Location: http://www.snorp.net/log
+Connection: close
+Transfer-Encoding: chunked
+Content-Type: text/html
+
+0