[Mono-bugs] [Bug 386727] New: CookieContainer doesn't produce a valid cookie header
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 5 10:24:45 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=386727
Summary: CookieContainer doesn't produce a valid cookie header
Product: Mono: Class Libraries
Version: SVN
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: djodjo at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
When using a HttpWebRequest with a cookie container, like in the following code
:
HttpWebRequest request = (HttpWebRequest)WebRequest.create(new
Uri("http://example.com/"));
request.CookieContainer = someCookieContainer;
the resulting request sent to the http server will contain a Cookie header with
each cookie separated by a semicolon, like the following example :
Cookie: cookie1=value1;cookie2=value2;cookie3=value3
Whereas the expected result is to see the cookies separated by a semicolon AND
a space, like the following example :
Cookie: cookie1=value1; cookie2=value2; cookie3=value3
Some web servers will simply ignore the cookies, other will handle the problem.
I discovered this bug because the cookies were simply ignored by IIS/5.0 (I got
a page "Please activate the cookies").
--
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