[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.


--- 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 Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: james@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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
+--- End of inner exception stack trace ---
+in <0x0007a> System.Net.HttpWebRequest:CheckFinalStatus
+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/ mod_ssl/2.8.16 OpenSSL/0.9.7a
+X-Powered-By: PHP/4.3.4
+Location: http://www.snorp.net/log
+Connection: close
+Transfer-Encoding: chunked
+Content-Type: text/html