[Mono-bugs] [Bug 44659][Maj] New - Bugs in HttpWebRequest/WebResponse

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 12 Jun 2003 15:22:30 -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 julie@magenet.com.


--- shadow/44659	Thu Jun 12 15:22:30 2003
+++ shadow/44659.tmp.26484	Thu Jun 12 15:22:30 2003
@@ -0,0 +1,62 @@
+Bug#: 44659
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Mandrake 9.1
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: julie@MageNet.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Bugs in HttpWebRequest/WebResponse
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Several bugs when dealing getting web pages, some with redirects, some 
+without.  Some deal with what appears to be timeouts.
+Steps to reproduce the problem:
+Simple program to get a web page and print out the html...
+using System;
+using System.Net;
+using System.IO;
+namespace RedirectTest {
+        public class Test {
+                static void Main (string[] args) {
+                        Console.WriteLine(args[0]);
+                        HttpWebRequest request = (HttpWebRequest) 
+                        WebResponse response = request.GetResponse();
+                        Stream stream = response.GetResponseStream();
+                        StreamReader sr = new StreamReader(stream);
+                        string result = sr.ReadToEnd();
+                        Console.WriteLine (result);
+                }
+        }
+Actual Results:
+mono RedirectTest.exe http://api.google.com 
+the redirects continue til it gets an exception...
+mono RedirectTest.exe http://weather.cnn.com/weather/forecast.jsp?
+it appears to only get part of the html file (and somewhat random amounts)
+mono RedirectTest.exe http://www.google.com/search.cig
+Should get a 404 exception, it doesn't always, sometimes it gets and 
+exception get geting the Request.
+there are lots of timeouts using the XML-RPC classes from CookComputing 
+with the current CVS classes, while it worked fine with the older CVS.