[Mono-bugs] [Bug 76922][Nor] New - HttpWebResponse failed to parse
some cookies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 5 16:31:50 EST 2005
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 colin at univ-metz.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=76922
--- shadow/76922 2005-12-05 16:31:50.000000000 -0500
+++ shadow/76922.tmp.29508 2005-12-05 16:31:50.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 76922
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: colin at univ-metz.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: HttpWebResponse failed to parse some cookies
+
+If a cookie contain a single token like 'secure', the internal cookie
+parser failed to retrieve value pair.
+
+Steps to reproduce the problem:
+here a simple test case :
+
+using System;
+using System.IO;
+using System.Net;
+class test {
+ static void Main() {
+ HttpWebRequest req =
+(HttpWebRequest)WebRequest.Create("http://join.msn.com/messenger/overview/");
+ // return cookie is MSNADS=UM=; domain=.msn.com; expires=Tue,
+26-Apr-2022 19:00:00 GMT; path=/; HttpOnly
+ req.UserAgent="User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR;
+rv:1.7.12) Gecko/20050920 Firefox/1.0.7";
+ req.CookieContainer = new CookieContainer();
+ req.AllowAutoRedirect = false;
+ HttpWebResponse response = (HttpWebResponse)req.GetResponse ();
+ }
+}
+
+Actual Results:
+Unhandled Exception: System.Net.WebException: Array index is out of range.
+---> System.IndexOutOfRangeException: Array index is out of range.
More information about the mono-bugs
mailing list