mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:33:32 +03:00
tests: update cookie expiry dates to far in the future
This allows testing Y2038 with system time set to after that, so that actual Y2038 issues can be exposed, and not masked by expiry errors. Fixes #11576 Closes #11610
This commit is contained in:
parent
bc7c4996f1
commit
c2212c05aa
16 changed files with 99 additions and 24 deletions
|
|
@ -16,7 +16,11 @@ HTTP/1.1 200 OK
|
|||
Server: Microsoft-IIS/4.0
|
||||
Date: Tue, 25 Sep 2001 19:37:44 GMT
|
||||
Content-Type: text/html
|
||||
%if large-time
|
||||
Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2525 11:56:27 GMT; path=/
|
||||
%else
|
||||
Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2037 11:56:27 GMT; path=/
|
||||
%endif
|
||||
Set-Cookie: ckySession=temporary; path=/
|
||||
Set-Cookie: ASPSESSIONIDQGGQQSJJ=GKNBDIFAAOFDPDAIEAKDIBKE; path=/
|
||||
Set-Cookie: justaname=; path=/;
|
||||
|
|
@ -50,10 +54,17 @@ domain..tld:%HTTPPORT/want/%TESTNUMBER --resolve domain..tld:%HTTPPORT:%HOSTIP -
|
|||
# https://curl.se/docs/http-cookies.html
|
||||
# This is generated by libcurl! Do not edit.
|
||||
|
||||
%if large-time
|
||||
www.fake.come FALSE / FALSE 22147483647 cookiecliente si
|
||||
www.loser.com FALSE / FALSE 22139150993 UID 99
|
||||
domain..tld FALSE / FALSE 22139150993 mooo indeed
|
||||
#HttpOnly_domain..tld FALSE /want FALSE 22139150993 mooo2 indeed2
|
||||
%else
|
||||
www.fake.come FALSE / FALSE 2147483647 cookiecliente si
|
||||
www.loser.com FALSE / FALSE 2139150993 UID 99
|
||||
domain..tld FALSE / FALSE 2139150993 mooo indeed
|
||||
#HttpOnly_domain..tld FALSE /want FALSE 2139150993 mooo2 indeed2
|
||||
%endif
|
||||
domain..tld FALSE /want FALSE 0 empty
|
||||
</file>
|
||||
<features>
|
||||
|
|
@ -80,12 +91,21 @@ domain..tld FALSE /want/ FALSE 0 simplyhuge zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
|
|||
domain..tld FALSE / FALSE 0 justaname
|
||||
domain..tld FALSE / FALSE 0 ASPSESSIONIDQGGQQSJJ GKNBDIFAAOFDPDAIEAKDIBKE
|
||||
domain..tld FALSE / FALSE 0 ckySession temporary
|
||||
%if large-time
|
||||
domain..tld FALSE / FALSE 17517902187 ckyPersistent permanent
|
||||
domain..tld FALSE /want FALSE 0 empty
|
||||
#HttpOnly_domain..tld FALSE /want FALSE 22139150993 mooo2 indeed2
|
||||
domain..tld FALSE / FALSE 22139150993 mooo indeed
|
||||
www.loser.com FALSE / FALSE 22139150993 UID 99
|
||||
www.fake.come FALSE / FALSE 22147483647 cookiecliente si
|
||||
%else
|
||||
domain..tld FALSE / FALSE 2118138987 ckyPersistent permanent
|
||||
domain..tld FALSE /want FALSE 0 empty
|
||||
#HttpOnly_domain..tld FALSE /want FALSE 2139150993 mooo2 indeed2
|
||||
domain..tld FALSE / FALSE 2139150993 mooo indeed
|
||||
www.loser.com FALSE / FALSE 2139150993 UID 99
|
||||
www.fake.come FALSE / FALSE 2147483647 cookiecliente si
|
||||
%endif
|
||||
</file>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue