mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:53:33 +03:00
- Dima Barsky made the curl cookie parser accept cookies even with blank or
unparsable expiry dates and then treat them as session cookies - previously libcurl would reject cookies with a date format it couldn't parse. Research shows that the major browser treat such cookies as session cookies. I modified test 8 and 31 to verify this.
This commit is contained in:
parent
7867d44251
commit
448d2b5f49
5 changed files with 17 additions and 5 deletions
|
|
@ -27,6 +27,7 @@ Set-Cookie: novalue; domain=reallysilly
|
|||
Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030
|
||||
Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030
|
||||
Set-Cookie: magic=yessir; path=/silly/; HttpOnly
|
||||
Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad;
|
||||
|
||||
boo
|
||||
</data>
|
||||
|
|
@ -71,6 +72,7 @@ Accept: */*
|
|||
.127.0.0.1 TRUE / FALSE 0 partmatch present
|
||||
127.0.0.1 FALSE /we/want/ FALSE 2054030187 nodomain value
|
||||
#HttpOnly_127.0.0.1 FALSE /silly/ FALSE 0 magic yessir
|
||||
.0.0.1 TRUE /we/want/ FALSE 0 blexp yesyes
|
||||
</file>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
|
|||
Set-Cookie: duplicate=test; domain=.0.0.1; domain=.0.0.1; path=/donkey;
|
||||
Set-Cookie: cookie=yes; path=/we;
|
||||
Set-Cookie: nocookie=yes; path=/WE;
|
||||
Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad;
|
||||
|
||||
</file>
|
||||
</client>
|
||||
|
|
@ -54,7 +55,7 @@ Set-Cookie: nocookie=yes; path=/WE;
|
|||
GET /we/want/8 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Cookie: cookie=yes; partmatch=present; foobar=name
|
||||
Cookie: blexp=yesyes; cookie=yes; partmatch=present; foobar=name
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue