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=Thursday, 31-Dec-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=Thursday, 31-Dec-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=Thursday, 31-Dec-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<features> 50proxy 51</features> 52</client> 53 54# Verify data after the test has been "shot" 55<verify> 56<strip> 57^User-Agent:.* 58</strip> 59<protocol> 60GET http://example.com/we/want/1415 HTTP/1.1 61Host: example.com 62Accept: */* 63Proxy-Connection: Keep-Alive 64 65</protocol> 66 67<file name="log/jar1415.txt" mode="text"> 68# Netscape HTTP Cookie File 69# https://curl.haxx.se/docs/http-cookies.html 70# This file was generated by libcurl! Edit at your own risk. 71 72.example.com TRUE / FALSE 2145830400 test7value test7 73.example.com TRUE / FALSE 2145830400 test4value test4 74.example.com TRUE / FALSE 2145830400 test2value test2 75.example.com TRUE / FALSE 0 test1value test1 76</file> 77</verify> 78</testcase> 79