I have a fix for this but it uses the org.apache.oro regular
expression parser.
E-mail me off line if you want the code to hack your own copy of
HttpClient

----- Original Message ----- 
From: "Ron Tower" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 9:26 AM
Subject: Commas in Cookie Value


Hello All,

Is there a problem when  a comma appears in a cookie value? See
02109POS below. It has a comma in the value and is split into two
cookies. IE at least parses this cookie as one cookie. Is there a
workaround for this?

My understanding is that a cookie value can have any character other
than a semicolon, space, or tab.

I got the following Set-Cookie headers:

[DEBUG] wire - -<< "Set-cookie: CDSContentDistributor=137169;
expires=Tuesday, 17-Jun-03 20:52:01 GMT; path=/[\r][\n]"
[DEBUG] wire - -<< "Set-cookie: 02109POS=<www4210513143792642538,>;
domain=.fidelity.com; path=/; expires=Fri, 12-Sep-2003 00:00:00
GMT;[\r][\n]"
[DEBUG] wire - -<< "Set-cookie:
MC=clHza1XIKW50aXo3nr5LD3gDFYMSAiWYtqihBBHXpfPA37wNqncGBAAAAQAGBT7vfRk
AP03; expires=Monday, 15-Sep-2003 20:42:01 GMT; domain=.fidelity.com;
path=/[\r][\n]"

And HttpClient sent the following Cookies:

[DEBUG] wire - ->> "Cookie: $Version=0; CDSContentDistributor=137169;
$Path=/[\r][\n]"
[DEBUG] wire - ->> "Cookie: $Version=0;
02109POS=<www4210513143792642538[\r][\n]"
[DEBUG] wire - ->> "Cookie: $Version=0; >=; $Domain=.fidelity.com;
$Path=/[\r][\n]"
[DEBUG] wire - ->> "Cookie: $Version=0;
MC=clHza1XIKW50aXo3nr5LD3gDFYMSAiWYtqihBBHXpfPA37wNqncGBAAAAQAGBT7vfRk
AP03; $Domain=.fidelity.com; $Path=/[\r][\n]"

Thanks,

Ron Tower



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to