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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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)
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to