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: Thu, 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=/;
23Set-Cookie: test2value=test2; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
24Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
25Set-Cookie: test4value=test4; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
26Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
27Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
28Set-Cookie: test7value=test7; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
29Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
30
31boo
32</data>
33</reply>
34
35# Client-side
36<client>
37<server>
38http
39</server>
40<name>
41Delete expired cookies
42</name>
43<setenv>
44TZ=GMT
45</setenv>
46<command>
47http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT
48</command>
49</client>
50
51# Verify data after the test has been "shot"
52<verify>
53<strip>
54^User-Agent:.*
55</strip>
56<protocol>
57GET http://example.com/we/want/1415 HTTP/1.1
58Host: example.com
59Accept: */*
60Proxy-Connection: Keep-Alive
61
62</protocol>
63
64<file name="log/jar1415.txt" mode="text">
65# Netscape HTTP Cookie File
66# http://curl.haxx.se/docs/http-cookies.html
67# This file was generated by libcurl! Edit at your own risk.
68
69.example.com	TRUE	/	FALSE	0	test1value	test1
70.example.com	TRUE	/	FALSE	2114380800	test2value	test2
71.example.com	TRUE	/	FALSE	2114380800	test4value	test4
72.example.com	TRUE	/	FALSE	2114380800	test7value	test7
73</file>
74</verify>
75</testcase>
76