xref: /curl/tests/data/test1415 (revision c2212c05)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7cookies
8cookiejar
9delete expired cookie
10</keywords>
11</info>
12
13# Server-side
14<reply>
15<data>
16HTTP/1.1 200 OK
17Date: Tue, 09 Nov 2010 14:49:00 GMT
18Server: test-server/fake
19Content-Length: 4
20Content-Type: text/html
21Funny-head: yesyes
22Set-Cookie: test1value=test1; domain=example.com; path=/;
23%if large-time
24Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
25Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
26Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
27Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
28Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
29Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2525 00:00:00 GMT; domain=example.com; path=/;
30Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
31%else
32Set-Cookie: test2value=test2; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
33Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
34Set-Cookie: test4value=test4; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
35Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
36Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
37Set-Cookie: test7value=test7; expires=Thursday, 31-Dec-2037 00:00:00 GMT; domain=example.com; path=/;
38Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
39%endif
40
41boo
42</data>
43</reply>
44
45# Client-side
46<client>
47<server>
48http
49</server>
50<name>
51Delete expired cookies
52</name>
53<setenv>
54TZ=GMT
55</setenv>
56<command>
57http://example.com/we/want/%TESTNUMBER -b none -c %LOGDIR/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
58</command>
59<features>
60cookies
61proxy
62</features>
63</client>
64
65# Verify data after the test has been "shot"
66<verify>
67<protocol>
68GET http://example.com/we/want/%TESTNUMBER HTTP/1.1
69Host: example.com
70User-Agent: curl/%VERSION
71Accept: */*
72Proxy-Connection: Keep-Alive
73
74</protocol>
75
76<file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
77# Netscape HTTP Cookie File
78# https://curl.se/docs/http-cookies.html
79# This file was generated by libcurl! Edit at your own risk.
80
81%if large-time
82.example.com	TRUE	/	FALSE	17545593600	test7value	test7
83.example.com	TRUE	/	FALSE	17545593600	test4value	test4
84.example.com	TRUE	/	FALSE	17545593600	test2value	test2
85%else
86.example.com	TRUE	/	FALSE	2145830400	test7value	test7
87.example.com	TRUE	/	FALSE	2145830400	test4value	test4
88.example.com	TRUE	/	FALSE	2145830400	test2value	test2
89%endif
90.example.com	TRUE	/	FALSE	0	test1value	test1
91</file>
92</verify>
93</testcase>
94