mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:33:34 +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
|
|
@ -17,8 +17,13 @@ Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
%if large-time
|
||||
Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 13 11:56:27 GMT 2525
|
||||
SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 13 11:56:27 GMT 2525
|
||||
%else
|
||||
Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 13 11:56:27 GMT 2037
|
||||
SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 13 11:56:27 GMT 2037
|
||||
%endif
|
||||
Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure
|
||||
Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure
|
||||
Set-Cookie: test5=name; domain=anything.com; path=/ ; secure
|
||||
|
|
@ -66,8 +71,13 @@ Accept: */*
|
|||
# https://curl.se/docs/http-cookies.html
|
||||
# This file was generated by libcurl! Edit at your own risk.
|
||||
|
||||
%if large-time
|
||||
.host.foo.com TRUE /we/want/ FALSE 17517902187 test2 yes
|
||||
#HttpOnly_.foo.com TRUE /we/want/ FALSE 17517902187 test yes
|
||||
%else
|
||||
.host.foo.com TRUE /we/want/ FALSE 2118138987 test2 yes
|
||||
#HttpOnly_.foo.com TRUE /we/want/ FALSE 2118138987 test yes
|
||||
%endif
|
||||
</file>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue