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