[Mono-bugs] [Bug 78028][Min] New - HttpWebResponse is implemented
diffrently in .NET and mono regarding Cookies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Apr 5 18:29:45 EDT 2006
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 oglimmer at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78028
--- shadow/78028 2006-04-05 18:29:45.000000000 -0400
+++ shadow/78028.tmp.16349 2006-04-05 18:29:45.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 78028
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: System
+AssignedTo: gonzalo at ximian.com
+ReportedBy: oglimmer at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: HttpWebResponse is implemented diffrently in .NET and mono regarding Cookies
+
+I found a difference between the mono and the MS-.NET implementation of
+
+System.Net.HttpWebResponse
+
+In .NET the Headers property contains also the Cookies ("Set-Cookie"), in
+the mono implementation the cookies are not included in the Headers
+property, they must be retrieved through the Cookies property.
+
+This code shows the difference:
+
+HttpWebRequest request =
+(HttpWebRequest)WebRequest.Create("http://www.schmetterlinge24.de");
+HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+foreach (string str in response.Headers)
+{
+ Console.WriteLine(str + "=" + response.Headers.Get(str));
+}
+response.Close();
+
+=> RESULT:
+===========
+.NET shows the "Set-Cookie" entry in the headers,
+mono filters the "Set-Cookie" header and shows them only in the Cookies
+property.
+
+(I checked .NET 1.0, 1.1 and 2.0 and they all do it the same)
More information about the mono-bugs
mailing list