Location: /want/data/%TESTNUMBER0002
Server: test-server/fake
Set-Cookie: test=true; domain=127.0.0.1; path=/; expires=Thu Jan 1 00:00:00 GMT 1970;
-Set-Cookie: test2=true; domain=127.0.0.1; path=/; expires=Fri Feb 13 11:56:27 GMT 2037;
+Set-Cookie: test2=true; domain=127.0.0.1; path=/; expires=Fri Feb 13 11:56:27 GMT 2525;
Connection: close
This server reply is for testing a set-cookie
Location: /want/data/%TESTNUMBER0002
Server: test-server/fake
Set-Cookie: test=true; domain=127.0.0.1; path=/; expires=Thu Jan 1 00:00:00 GMT 1970;
-Set-Cookie: test2=true; domain=127.0.0.1; path=/; expires=Fri Feb 13 11:56:27 GMT 2037;
+Set-Cookie: test2=true; domain=127.0.0.1; path=/; expires=Fri Feb 13 11:56:27 GMT 2525;
Connection: close
HTTP/1.1 200 Followed here fine swsclose
http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
</command>
<file name="%LOGDIR/injar%TESTNUMBER">
-example.fake FALSE /a FALSE 2139150993 mooo indeed
+example.fake FALSE /a FALSE 22139150993 mooo indeed
example.fake FALSE /b FALSE 0 moo1 indeed
-example.fake FALSE /c FALSE 2139150993 moo2 indeed
-example.fake TRUE /c FALSE 2139150993 moo3 indeed
+example.fake FALSE /c FALSE 22139150993 moo2 indeed
+example.fake TRUE /c FALSE 22139150993 moo3 indeed
</file>
<features>
cookies
Content-Type: text/html
Funny-head: yesyes
Set-Cookie: test1value=test1; domain=example.com; path=/;
+%if large-time
+Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
+Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
+Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
+Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
+%else
Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
+%endif
boo
</data>
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
+%if large-time
+.example.com TRUE / FALSE 17545593600 test7value test7
+.example.com TRUE / FALSE 17545593600 test4value test4
+.example.com TRUE / FALSE 17545593600 test2value test2
+%else
.example.com TRUE / FALSE 2145830400 test7value test7
.example.com TRUE / FALSE 2145830400 test4value test4
.example.com TRUE / FALSE 2145830400 test2value test2
+%endif
.example.com TRUE / FALSE 0 test1value test1
</file>
</verify>
.%HOSTIP TRUE /silly/ FALSE 0 ismatch this
.%HOSTIP TRUE / FALSE 0 partmatch present
-%HOSTIP FALSE /we/want/ FALSE 2139150993 nodomain value
+%HOSTIP FALSE /we/want/ FALSE 22139150993 nodomain value
</file>
<features>
cookies
http://supertrooper.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
</command>
<file name="%LOGDIR/injar%TESTNUMBER">
-supertrooper.fake FALSE /a FALSE 2139150993 mooo indeed
+supertrooper.fake FALSE /a FALSE 22139150993 mooo indeed
supertrooper.fake FALSE /b FALSE 0 moo1 indeed
-supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed
+supertrooper.fake FALSE /c FALSE 22139150993 moo2 indeed
</file>
<features>
cookies
42
</errorcode>
<stdout>
+%if large-time
+[0/4] 1.example.com 25250320 01:02:03
+[1/4] 2.example.com 25250320 03:02:01
+[2/4] 3.example.com 25250319 01:02:03
+%else
[0/4] 1.example.com 20370320 01:02:03
[1/4] 2.example.com 20370320 03:02:01
[2/4] 3.example.com 20370319 01:02:03
+%endif
[3/4] 4.example.com unlimited
First request returned 7
Second request returned 42
Set-Cookie:eat=this; domain=moo.foo.moo;\r
Set-Cookie: eat=this-too; domain=.foo.moo;\r
Set-Cookie: nodomainnovalue\r
+%if large-time
+Set-Cookie: nodomain=value; expires=Fri Feb 13 11:56:27 GMT 2525\r
+Set-Cookie: novalue; domain=reallysilly\r
+Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2525\r
+Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2525\r
+%else
Set-Cookie: nodomain=value; expires=Fri Feb 13 11:56:27 GMT 2037\r
Set-Cookie: novalue; domain=reallysilly\r
Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030\r
Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030\r
+%endif
Set-Cookie: magic=yessir; path=/silly/; HttpOnly\r
Set-Cookie: blexp=yesyes; domain=test31.curl; domain=test31.curl; expiry=totally bad;\r
Set-Cookie: partialip=nono; domain=.0.0.1;\r
Set-Cookie: eat=this; domain=moo.foo.moo;\r
Set-Cookie: eat=this-too; domain=.foo.moo;\r
Set-Cookie: nodomainnovalue\r
+%if large-time
+Set-Cookie: nodomain=value; expires=Fri Feb 13 11:56:27 GMT 2525\r
+Set-Cookie: novalue; domain=reallysilly\r
+Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2525\r
+Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2525\r
+%else
Set-Cookie: nodomain=value; expires=Fri Feb 13 11:56:27 GMT 2037\r
Set-Cookie: novalue; domain=reallysilly\r
Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030\r
Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030\r
+%endif
Set-Cookie: magic=yessir; path=/silly/; HttpOnly\r
Set-Cookie: blexp=yesyes; domain=test31.curl; domain=test31.curl; expiry=totally bad;\r
Set-Cookie: partialip=nono; domain=.0.0.1;\r
test31.curl FALSE /we/want/ FALSE 0 withspaces yes within and around
.test31.curl TRUE /we/want/ FALSE 0 blexp yesyes
#HttpOnly_test31.curl FALSE /silly/ FALSE 0 magic yessir
+%if large-time
+test31.curl FALSE /we/want/ FALSE 17517902187 nodomain value
+%else
test31.curl FALSE /we/want/ FALSE 2118138987 nodomain value
+%endif
.test31.curl TRUE / FALSE 0 partmatch present
#HttpOnly_.test31.curl TRUE /p4/ FALSE 0 httponly myvalue1
#HttpOnly_.test31.curl TRUE /p4/ FALSE 0 httpo4 value4
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes swsclose
-Set-Cookie: foobar=name; expires=Thu, 22 Nov 2037 10:54:11 GMT;
+Set-Cookie: foobar=name; expires=Thu, 22 Nov 2525 10:54:11 GMT;
</data>
<data2>
# Client-side
<client>
<file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
-.host.foo.com TRUE /we/want/ FALSE 2147483647 test no
+.host.foo.com TRUE /we/want/ FALSE 22147483647 test no
</file>
<file name="%LOGDIR/jar%TESTNUMBER-2.txt" mode="text">
-.host.foo.com TRUE /we/want/ FALSE 2147483647 tester yes
+.host.foo.com TRUE /we/want/ FALSE 22147483647 tester yes
</file>
<server>
http
http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b %LOGDIR/cookie%TESTNUMBER -c %LOGDIR/save%TESTNUMBER
</command>
<file name="%LOGDIR/cookie%TESTNUMBER" mode="text">
-%HOSTIP FALSE /func_test FALSE 1709598616 mycookie6 991
-#HttpOnly_%HOSTIP FALSE /func_test FALSE 1709598616 mycookie5 990
-#HttpOnly_%HOSTIP FALSE /func_test FALSE 1709598616 mycookie4 950
-#HttpOnly_%HOSTIP FALSE /func_test FALSE 1709598616 mycookie3 900
-#HttpOnly_%HOSTIP FALSE /func_test/ FALSE 1709598616 mycookie2 5900
-#HttpOnly_%HOSTIP FALSE / FALSE 1709598616 mycookie1 4900
+%HOSTIP FALSE /func_test FALSE 21709598616 mycookie6 991
+#HttpOnly_%HOSTIP FALSE /func_test FALSE 21709598616 mycookie5 990
+#HttpOnly_%HOSTIP FALSE /func_test FALSE 21709598616 mycookie4 950
+#HttpOnly_%HOSTIP FALSE /func_test FALSE 21709598616 mycookie3 900
+#HttpOnly_%HOSTIP FALSE /func_test/ FALSE 21709598616 mycookie2 5900
+#HttpOnly_%HOSTIP FALSE / FALSE 21709598616 mycookie1 4900
#HttpOnly_%HOSTIP FALSE /func_test/ FALSE 0 mycookie 1200
</file>
<features>
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
-#HttpOnly_127.0.0.1 FALSE /func_test/ FALSE 1709598616 mycookie2 5900
+#HttpOnly_127.0.0.1 FALSE /func_test/ FALSE 21709598616 mycookie2 5900
</file>
</verify>
</testcase>
Server: Microsoft-IIS/4.0\r
Date: Tue, 25 Sep 2001 19:37:44 GMT\r
Content-Type: text/html\r
+%if large-time
+Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2525 11:56:27 GMT; path=/\r
+%else
Set-Cookie: ckyPersistent=permanent; expires=Fri, 13-Feb-2037 11:56:27 GMT; path=/\r
+%endif
Set-Cookie: ckySession=temporary; path=/\r
Set-Cookie: ASPSESSIONIDQGGQQSJJ=GKNBDIFAAOFDPDAIEAKDIBKE; path=/\r
Set-Cookie: justaname=; path=/;\r
# 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>
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>
%HOSTIP:%HTTPPORT/want/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -j
</command>
<file name="%LOGDIR/injar%TESTNUMBER">
-%HOSTIP FALSE / FALSE 2139150993 mooo indeed
+%HOSTIP FALSE / FALSE 22139150993 mooo indeed
%HOSTIP FALSE / FALSE 0 moo1 indeed
%HOSTIP FALSE / FALSE 1 moo2 indeed
</file>
Server: test-server/fake\r
Content-Type: text/html\r
Funny-head: yesyes\r
+%if large-time
+Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 13 11:56:27 GMT 2525\r
+SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 13 11:56:27 GMT 2525\r
+%else
Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 13 11:56:27 GMT 2037\r
SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 13 11:56:27 GMT 2037\r
+%endif
Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure\r
Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure\r
Set-Cookie: test5=name; domain=anything.com; path=/ ; secure\r
# 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>
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
-#HttpOnly_.foo.com TRUE /we/want/ FALSE 2147483647 test yes
-.host.foo.com TRUE /we/want/ FALSE 2147483647 test2 yes
-.fake.host.foo.com TRUE /we/want/ FALSE 2147483647 test4 yes
+#HttpOnly_.foo.com TRUE /we/want/ FALSE 22147483647 test yes
+.host.foo.com TRUE /we/want/ FALSE 22147483647 test2 yes
+.fake.host.foo.com TRUE /we/want/ FALSE 22147483647 test4 yes
.foo.com TRUE /moo TRUE 0 test3 maybe
</file>
# Client-side
<client>
<file name="%LOGDIR/cookies%TESTNUMBER">
-%HOSTIP TRUE /we/want/ FALSE 2118138987 proven yes
+%HOSTIP TRUE /we/want/ FALSE 22118138987 proven yes
</file>
<server>
http
};
static const struct entry preload_hosts[] = {
- /* curl turns 39 that day just before 31-bit time_t overflow */
+#if (SIZEOF_TIME_T < 5)
{ "1.example.com", "20370320 01:02:03" },
{ "2.example.com", "20370320 03:02:01" },
{ "3.example.com", "20370319 01:02:03" },
+#else
+ { "1.example.com", "25250320 01:02:03" },
+ { "2.example.com", "25250320 03:02:01" },
+ { "3.example.com", "25250319 01:02:03" },
+#endif
{ "4.example.com", "" },
{ NULL, NULL } /* end of list marker */
};