[Mono-bugs] [Bug 667550] New: Httplistener sends cookies in a comma-separated list, browsers don't like that

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 27 02:42:47 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=667550#c0


           Summary: Httplistener sends cookies in a comma-separated list,
                    browsers don't like that
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: luisfam at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=410693)
 --> (http://bugzilla.novell.com/attachment.cgi?id=410693)
example with source code

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13

RFC-2109 mentions multiple cookies can be sent in a single "Set-Cookie" header
separated by comma. This is how HttpListener does it but none of the browsers
accept that. Browsers need one Set-Cookie header for each cookie.

Reproducible: Always

Steps to Reproduce:
1. Run HttpListenerDemo/bin/Debug/HttpListenerDemo.exe This program sets 2
cookies (x=1, y=2)
2. Open http://127.0.0.1:9999
3. Use browser plugins to view header and cookie values.
Actual Results:  
See this screen shot:
http://i.imgur.com/uUCmX.png

A single Set-Cookie header is sent:
Set-Cookie: x=1,y=2

And Firefox and other browsers thinks it is a single cookie "x" with value
"1,x=2"

Expected Results:  
It should send one Set-Cookie header for each cookie.
Set-Cookie: x=1
Set-Cookie: y=2

I have attached an application that demonstrates the bug.

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


More information about the mono-bugs mailing list