[Mono-bugs] [Bug 421827] HttpWebRequest drops cookies

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 3 13:15:10 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=421827

User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=421827#c1


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gert.driesen at pandora.be




--- Comment #1 from Gert Driesen <gert.driesen at pandora.be>  2008-09-03 11:15:10 MDT ---
This issue here is that the cookie contains a domain without a lead dot.

According to rfc2109 [1], an explicitly specified domain should always start
without a dot.

However, both .NET, Internet Explorer and FireFox seem to allow a domain
without a leading dot.

In CookieContainer.CheckDomain, we filter out cookies that have a domain
without a leading dot.

Another difference is that we consider the cookie a match if the domain is the
same as the host, while .NET ignores the cookie in that case.

I've attached a small repro that shows the difference in behavior.

[1] HTTP State Management Mechanism
    http://www.w3.org/Protocols/rfc2109/rfc2109


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list