When calling HttpCookie.parse method to parse cookie header ,it can't parse it correctly when there
is white space between each attributes.
###@###.### 2005-05-30 06:45:50 GMT
Please see the below test case:
Set-Cookie2:Customer="dtftest";Discard; Secure; Domain=".sun.com"; Max-Age="100"
;Version="1"; path="/www"; Port="80"
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer="dtftest";Discard;Secure;domain="sun.com";Max-Age="100";Ver
sion="1";path="/www";Port="80",Part="number_1"; Version="1";path="/";
Set-Cookie2:Customer = "dtftest"; Discard; Secure; Domain ="sun.com"; Max-Age= "
100"; Version = "1";
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer = dtftest; Discard; Secure; Domain =sun.com; Max-Age= 100;
Version = 1;
testCons02:Exception thrown, not the expected : Fail
Customer="dtftest";Discard;Secure;Domain="sun.com"; Max-Age="100";Version="1";pa
th="/www";Port="80";
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer=dtftest;Discard; Secure; Domain=sun.com; Max-Age=100;Versio
n=1; path=/www;Port=80;
testCons02:Exception thrown, not the expected : Fail
###@###.### 2005-05-30 08:17:09 GMT
is white space between each attributes.
###@###.### 2005-05-30 06:45:50 GMT
Please see the below test case:
Set-Cookie2:Customer="dtftest";Discard; Secure; Domain=".sun.com"; Max-Age="100"
;Version="1"; path="/www"; Port="80"
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer="dtftest";Discard;Secure;domain="sun.com";Max-Age="100";Ver
sion="1";path="/www";Port="80",Part="number_1"; Version="1";path="/";
Set-Cookie2:Customer = "dtftest"; Discard; Secure; Domain ="sun.com"; Max-Age= "
100"; Version = "1";
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer = dtftest; Discard; Secure; Domain =sun.com; Max-Age= 100;
Version = 1;
testCons02:Exception thrown, not the expected : Fail
Customer="dtftest";Discard;Secure;Domain="sun.com"; Max-Age="100";Version="1";pa
th="/www";Port="80";
testCons02:Exception thrown, not the expected : Fail
Set-Cookie2:Customer=dtftest;Discard; Secure; Domain=sun.com; Max-Age=100;Versio
n=1; path=/www;Port=80;
testCons02:Exception thrown, not the expected : Fail
###@###.### 2005-05-30 08:17:09 GMT