[Mono-bugs] [Bug 65878][Nor] Changed - HttpWebResponse doesn't add cookie path
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 1 Dec 2004 13:57:12 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=65878
--- shadow/65878 2004-09-13 15:49:36.000000000 -0400
+++ shadow/65878.tmp.15251 2004-12-01 13:57:11.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 65878
Product: Mono: Class Libraries
Version: unspecified
OS: unknown
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Normal
Component: System
AssignedTo: gonzalo@ximian.com
ReportedBy: lewing@ximian.com
QAContact: mono-bugs@ximian.com
@@ -45,6 +45,43 @@
Path Defaults to the path of the request URL that generated the
Set-Cookie response, up to, but not including, the
right-most /.
Secure If absent, the user agent may send the cookie over an
insecure channel.
+
+------- Additional Comments From gonzalo@ximian.com 2004-12-01 13:57 -------
+This program outputs the same on mono and under MS:
+--
+// testcookieresponse.cs
+using System;
+using System.Net;
+
+public class Class1
+{
+ static void Main ()
+ {
+ HttpWebRequest req = (HttpWebRequest)
+WebRequest.Create ("http://www.google.com/");
+ CookieContainer cc = new CookieContainer ();
+ req.CookieContainer = cc;
+ HttpWebResponse resp = (HttpWebResponse)
+req.GetResponse ();
+ foreach (Cookie c in resp.Cookies) {
+ Console.WriteLine ("Path: ", c.Path);
+ Console.WriteLine ("Domain: ", c.Domain);
+ }
+ }
+}
+--
+
+The output is:
+Path:
+Domain:
+
+And the cookie sent back from google is (splitted in 2 lines?):
+Set-Cookie:
+PREF=ID=423cfafe45652fb2:TM=1101921450:LM=1101921450:S=_uSIpTXy5KVEm8qm;
+expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
+
+So I see no problem here.
+