[Mono-bugs] [Bug 62744][Nor] New - Only the last cookie sent from a remote HTTP server is available via HttpWebRequest.Cookies

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 9 Aug 2004 17:48:14 -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 adam@battleaxe.net.

http://bugzilla.ximian.com/show_bug.cgi?id=62744

--- shadow/62744	2004-08-09 17:48:14.000000000 -0400
+++ shadow/62744.tmp.9575	2004-08-09 17:48:14.000000000 -0400
@@ -0,0 +1,120 @@
+Bug#: 62744
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Debian Unstable
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: adam@battleaxe.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Only the last cookie sent from a remote HTTP server is available via HttpWebRequest.Cookies
+
+Description of Problem:
+
+Only the last cookie received is returned via HttpWebRequest.Cookies
+
+Steps to reproduce the problem:
+1. Make a HTTP request (using HttpWebRequest) to any page that returns
+multiple cookies. (Ad banners and event details on Ticketmaster.com are
+good examples)
+2. Check count of HttpWebResponse.Cookies
+
+Using
+http://www.ticketmaster.com/event/040038BC9FFC0F92?brand=&tm_link=tm_home_g6
+for testing (See attached sample code):
+
+
+Actual Results:
+Date:Mon, 09 Aug 2004 20:44:04 GMT
+Server:Apache/1.3.23 (Unix) mod_perl/1.27
+Set-Cookie:BRAND2=; domain=.ticketmaster.com; path=/; expires=Sun,
+08-Aug-2004 20:44:04 GMT
+Content-Length:67708
+Expires:Thu, 1 Jan 1970 00:00:00 GMT
+P3P:policyref="/w3c/tmol/p3p.xml", CP="IDC DSP COR CURa ADMa DEVa TAIa PSAa
+CONo HISa TELo OUR DELo UNRo IND PHY ONL UNI PUR COM NAV INT DEM"
+Content-Type:text/html; charset=utf-8
+Vary:Accept-Encoding
+Connection:close
+1 Cookies found.
+BRAND2:
+
+
+Expected Results:
+Date:Mon, 09 Aug 2004 21:23:07 GMT
+Server:Apache/1.3.23 (Unix) mod_perl/1.27
+Set-Cookie:SID=bzCsucrnLMPa9YNQNrkGzjelph_zArOSrJZ8kQxhUXTNRUaDWwuegpzr25bCSMhnsMs6EvuElggtw5rk;
+path=/;
+domain=.ticketmaster.com,BID=w3tNAELcQ3N3BVyFwkr50ZAPWOjyn8VIFt3AOA5B-P5_cTmv6zDR8nvVim2tntPx2IgnGCI13o554dvJvL4K;
+path=/; domain=.ticketmaster.com; expires=Fri, 01-Jan-2038 00:00:01
+GMT,BRAND=; domain=.ticketmaster.com; path=/; expires=Sun, 08-Aug-2004
+21:23:07 GMT,BRAND2=; domain=.ticketmaster.com; path=/; expires=Sun,
+08-Aug-2004 21:23:07 GMT
+Content-Length:67708
+Expires:Thu, 1 Jan 1970 00:00:00 GMT
+P3P:policyref="/w3c/tmol/p3p.xml", CP="IDC DSP COR CURa ADMa DEVa TAIa PSAa
+CONo HISa TELo OUR DELo UNRo IND PHY ONL UNI PUR COM NAV INT DEM"
+Content-Type:text/html; charset=utf-8
+Vary:Accept-Encoding
+Connection:close
+4 Cookies found.
+SID:
+bzCsucrnLMPa9YNQNrkGzjelph_zArOSrJZ8kQxhUXTNRUaDWwuegpzr25bCSMhnsMs6EvuElggtw5rk
+BID:
+w3tNAELcQ3N3BVyFwkr50ZAPWOjyn8VIFt3AOA5B-P5_cTmv6zDR8nvVim2tntPx2IgnGCI13o554dvJvL4K
+BRAND:
+BRAND2:
+
+
+How often does this happen? 
+
+Consistently.
+
+Additional Information:
+
+tcp dump of the request:
+
+GET /event/040038BC9FFC0F92?brand=&tm_link=tm_home_g6 HTTP/1.1
+
+Connection: keep-alive
+
+Host: www.ticketmaster.com
+
+
+
+HTTP/1.1 200 OK
+
+Date: Mon, 09 Aug 2004 17:29:24 GMT
+
+Server: Apache/2.0.49 (Unix)
+
+Set-Cookie:
+SID=bWRfRdLtjzjT2V9jfge38Nu-gGDykT9DuWjj03IPd0Fjd3bb6FK075DRCkbFGe--6sVWZH-S9fBv0OmV;
+path=/; domain=.ticketmaster.com
+
+Set-Cookie:
+BID=ecQp0YGqBejhmLJXgc5vSCrQI0mDmz8hwgDMXY3gog7Higu-qOdFJyfdKShufxE2I83PlKzsQdLvxI77O6pB;
+path=/; domain=.ticketmaster.com; expires=Fri, 01-Jan-2038 00:00:01 GMT
+
+Content-Length: 67708
+
+P3P: policyref="/w3c/tmol/p3p.xml", CP="IDC DSP COR CURa ADMa DEVa TAIa
+PSAa CONo HISa TELo OUR DELo UNRo IND PHY ONL UNI PUR COM NAV INT DEM"
+
+Content-Type: text/html; charset=utf-8
+
+Expires: Thu, 1 Jan 1970 00:00:00 GMT
+
+Vary: Accept-Encoding
+
+Connection: close
+
+
+(Sometimes this server gives me two cookies, sometimes four.  It doesn't
+matter for this test case)