xref: /third_party/curl/tests/data/test1415 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciHTTP proxy
713498266Sopenharmony_cicookies
813498266Sopenharmony_cicookiejar
913498266Sopenharmony_cidelete expired cookie
1013498266Sopenharmony_ci</keywords>
1113498266Sopenharmony_ci</info>
1213498266Sopenharmony_ci
1313498266Sopenharmony_ci# Server-side
1413498266Sopenharmony_ci<reply>
1513498266Sopenharmony_ci<data>
1613498266Sopenharmony_ciHTTP/1.1 200 OK
1713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1813498266Sopenharmony_ciServer: test-server/fake
1913498266Sopenharmony_ciContent-Length: 4
2013498266Sopenharmony_ciContent-Type: text/html
2113498266Sopenharmony_ciFunny-head: yesyes
2213498266Sopenharmony_ciSet-Cookie: test1value=test1; domain=example.com; path=/;
2313498266Sopenharmony_ci%if large-time
2413498266Sopenharmony_ciSet-Cookie: test2value=test2; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
2513498266Sopenharmony_ciSet-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
2613498266Sopenharmony_ciSet-Cookie: test4value=test4; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
2713498266Sopenharmony_ciSet-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
2813498266Sopenharmony_ciSet-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
2913498266Sopenharmony_ciSet-Cookie: test7value=test7; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
3013498266Sopenharmony_ciSet-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
3113498266Sopenharmony_ci%else
3213498266Sopenharmony_ciSet-Cookie: test2value=test2; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
3313498266Sopenharmony_ciSet-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
3413498266Sopenharmony_ciSet-Cookie: test4value=test4; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
3513498266Sopenharmony_ciSet-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
3613498266Sopenharmony_ciSet-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
3713498266Sopenharmony_ciSet-Cookie: test7value=test7; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
3813498266Sopenharmony_ciSet-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
3913498266Sopenharmony_ci%endif
4013498266Sopenharmony_ci
4113498266Sopenharmony_ciboo
4213498266Sopenharmony_ci</data>
4313498266Sopenharmony_ci</reply>
4413498266Sopenharmony_ci
4513498266Sopenharmony_ci# Client-side
4613498266Sopenharmony_ci<client>
4713498266Sopenharmony_ci<server>
4813498266Sopenharmony_cihttp
4913498266Sopenharmony_ci</server>
5013498266Sopenharmony_ci<name>
5113498266Sopenharmony_ciDelete expired cookies
5213498266Sopenharmony_ci</name>
5313498266Sopenharmony_ci<setenv>
5413498266Sopenharmony_ciTZ=GMT
5513498266Sopenharmony_ci</setenv>
5613498266Sopenharmony_ci<command>
5713498266Sopenharmony_cihttp://example.com/we/want/%TESTNUMBER -b none -c %LOGDIR/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
5813498266Sopenharmony_ci</command>
5913498266Sopenharmony_ci<features>
6013498266Sopenharmony_cicookies
6113498266Sopenharmony_ciproxy
6213498266Sopenharmony_ci</features>
6313498266Sopenharmony_ci</client>
6413498266Sopenharmony_ci
6513498266Sopenharmony_ci# Verify data after the test has been "shot"
6613498266Sopenharmony_ci<verify>
6713498266Sopenharmony_ci<protocol>
6813498266Sopenharmony_ciGET http://example.com/we/want/%TESTNUMBER HTTP/1.1
6913498266Sopenharmony_ciHost: example.com
7013498266Sopenharmony_ciUser-Agent: curl/%VERSION
7113498266Sopenharmony_ciAccept: */*
7213498266Sopenharmony_ciProxy-Connection: Keep-Alive
7313498266Sopenharmony_ci
7413498266Sopenharmony_ci</protocol>
7513498266Sopenharmony_ci
7613498266Sopenharmony_ci<file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
7713498266Sopenharmony_ci# Netscape HTTP Cookie File
7813498266Sopenharmony_ci# https://curl.se/docs/http-cookies.html
7913498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk.
8013498266Sopenharmony_ci
8113498266Sopenharmony_ci%if large-time
8213498266Sopenharmony_ci.example.com	TRUE	/	FALSE	17545593600	test7value	test7
8313498266Sopenharmony_ci.example.com	TRUE	/	FALSE	17545593600	test4value	test4
8413498266Sopenharmony_ci.example.com	TRUE	/	FALSE	17545593600	test2value	test2
8513498266Sopenharmony_ci%else
8613498266Sopenharmony_ci.example.com	TRUE	/	FALSE	2145830400	test7value	test7
8713498266Sopenharmony_ci.example.com	TRUE	/	FALSE	2145830400	test4value	test4
8813498266Sopenharmony_ci.example.com	TRUE	/	FALSE	2145830400	test2value	test2
8913498266Sopenharmony_ci%endif
9013498266Sopenharmony_ci.example.com	TRUE	/	FALSE	0	test1value	test1
9113498266Sopenharmony_ci</file>
9213498266Sopenharmony_ci</verify>
9313498266Sopenharmony_ci</testcase>
94