113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciHTTP 513498266Sopenharmony_ciHTTP GET 613498266Sopenharmony_cicookies 713498266Sopenharmony_cishared cookies 813498266Sopenharmony_ci</keywords> 913498266Sopenharmony_ci</info> 1013498266Sopenharmony_ci 1113498266Sopenharmony_ci# Server-side 1213498266Sopenharmony_ci<reply> 1313498266Sopenharmony_ci<data1> 1413498266Sopenharmony_ciHTTP/1.1 200 OK 1513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 1613498266Sopenharmony_ciServer: test-server/fake 1713498266Sopenharmony_ciContent-Type: text/html 1813498266Sopenharmony_ciSet-Cookie: test1=one; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 1913498266Sopenharmony_ciSet-Cookie: test2=two; domain=host.foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 2013498266Sopenharmony_ciSet-Cookie: test3=three; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 2113498266Sopenharmony_ciContent-Length: 29 2213498266Sopenharmony_ci 2313498266Sopenharmony_cirun 1: set cookie 1, 2 and 3 2413498266Sopenharmony_ci</data1> 2513498266Sopenharmony_ci<data2> 2613498266Sopenharmony_ciHTTP/1.1 200 OK 2713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:01 GMT 2813498266Sopenharmony_ciServer: test-server/fake 2913498266Sopenharmony_ciContent-Type: text/html 3013498266Sopenharmony_ciSet-Cookie: test4=four; domain=host.foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 3113498266Sopenharmony_ciSet-Cookie: test5=five; domain=host.foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 3213498266Sopenharmony_ciContent-Length: 26 3313498266Sopenharmony_ci 3413498266Sopenharmony_cirun 2: set cookie 4 and 5 3513498266Sopenharmony_ci</data2> 3613498266Sopenharmony_ci<data3> 3713498266Sopenharmony_ciHTTP/1.1 200 OK 3813498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:02 GMT 3913498266Sopenharmony_ciServer: test-server/fake 4013498266Sopenharmony_ciContent-Type: text/html 4113498266Sopenharmony_ciFunny-head: yesyes 4213498266Sopenharmony_ciSet-Cookie: test4=overwritten4; domain=host.foo.com; expires=Sat May 5 GMT 11:56:27 2035 4313498266Sopenharmony_ciSet-Cookie: test1=overwritten1; domain=foo.com; expires=Thu Mar 3 GMT 11:56:27 2033 4413498266Sopenharmony_ciSet-Cookie: test6=six; domain=.www.host.foo.com; expires=Thu Mar 3 GMT 11:56:27 2033 4513498266Sopenharmony_ciSet-Cookie: test6=six_more; expires=Thu Mar 3 GMT 11:56:27 2033 4613498266Sopenharmony_ciContent-Type: text/html 4713498266Sopenharmony_ciContent-Length: 73 4813498266Sopenharmony_ci 4913498266Sopenharmony_cirun 3: overwrite cookie 1 and 4, set cookie 6 with and without tailmatch 5013498266Sopenharmony_ci</data3> 5113498266Sopenharmony_ci</reply> 5213498266Sopenharmony_ci 5313498266Sopenharmony_ci# Client-side 5413498266Sopenharmony_ci<client> 5513498266Sopenharmony_ci<server> 5613498266Sopenharmony_cihttp 5713498266Sopenharmony_ci</server> 5813498266Sopenharmony_ci# don't run this with the threaded-resolver or c-ares since the events might 5913498266Sopenharmony_ci# trigger in a different order! 6013498266Sopenharmony_ci<features> 6113498266Sopenharmony_ci!threaded-resolver 6213498266Sopenharmony_ci!c-ares 6313498266Sopenharmony_ci</features> 6413498266Sopenharmony_ci<name> 6513498266Sopenharmony_ciHTTP with shared cookie list (and dns cache) 6613498266Sopenharmony_ci</name> 6713498266Sopenharmony_ci# Explicitly set the time zone to a known good one, in case the user is 6813498266Sopenharmony_ci# using one of the 'right' zones that take into account leap seconds 6913498266Sopenharmony_ci# which causes the cookie expiry times to be different. 7013498266Sopenharmony_ci<setenv> 7113498266Sopenharmony_ciTZ=GMT 7213498266Sopenharmony_ci</setenv> 7313498266Sopenharmony_ci<tool> 7413498266Sopenharmony_cilib%TESTNUMBER 7513498266Sopenharmony_ci</tool> 7613498266Sopenharmony_ci<command> 7713498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/jar%TESTNUMBER 7813498266Sopenharmony_ci</command> 7913498266Sopenharmony_ci</client> 8013498266Sopenharmony_ci 8113498266Sopenharmony_ci# Verify data after the test has been "shot" 8213498266Sopenharmony_ci<verify> 8313498266Sopenharmony_ci<stdout> 8413498266Sopenharmony_ciGLOBAL_INIT 8513498266Sopenharmony_ciSHARE_INIT 8613498266Sopenharmony_ciCURLSHOPT_LOCKFUNC 8713498266Sopenharmony_ciCURLSHOPT_UNLOCKFUNC 8813498266Sopenharmony_ciCURLSHOPT_USERDATA 8913498266Sopenharmony_ciCURL_LOCK_DATA_COOKIE 9013498266Sopenharmony_ciCURL_LOCK_DATA_DNS 9113498266Sopenharmony_ciCURLOPT_SHARE 9213498266Sopenharmony_cilock: share [Pigs in space]: 0 9313498266Sopenharmony_ciunlock: share [Pigs in space]: 1 9413498266Sopenharmony_ciCURLOPT_COOKIELIST injected_and_clobbered 9513498266Sopenharmony_cilock: cookie [Pigs in space]: 2 9613498266Sopenharmony_ciunlock: cookie [Pigs in space]: 3 9713498266Sopenharmony_ciCURLOPT_COOKIELIST ALL 9813498266Sopenharmony_cilock: cookie [Pigs in space]: 4 9913498266Sopenharmony_ciunlock: cookie [Pigs in space]: 5 10013498266Sopenharmony_ciCURLOPT_COOKIELIST session 10113498266Sopenharmony_cilock: cookie [Pigs in space]: 6 10213498266Sopenharmony_ciunlock: cookie [Pigs in space]: 7 10313498266Sopenharmony_ciCURLOPT_COOKIELIST injected 10413498266Sopenharmony_cilock: cookie [Pigs in space]: 8 10513498266Sopenharmony_ciunlock: cookie [Pigs in space]: 9 10613498266Sopenharmony_ciCURLOPT_COOKIELIST SESS 10713498266Sopenharmony_cilock: cookie [Pigs in space]: 10 10813498266Sopenharmony_ciunlock: cookie [Pigs in space]: 11 10913498266Sopenharmony_ciCLEANUP 11013498266Sopenharmony_cilock: cookie [Pigs in space]: 12 11113498266Sopenharmony_ciunlock: cookie [Pigs in space]: 13 11213498266Sopenharmony_cilock: share [Pigs in space]: 14 11313498266Sopenharmony_ciunlock: share [Pigs in space]: 15 11413498266Sopenharmony_ci*** run 1 11513498266Sopenharmony_ciCURLOPT_SHARE 11613498266Sopenharmony_cilock: share [Pigs in space]: 16 11713498266Sopenharmony_ciunlock: share [Pigs in space]: 17 11813498266Sopenharmony_ciPERFORM 11913498266Sopenharmony_cilock: cookie [Pigs in space]: 18 12013498266Sopenharmony_ciunlock: cookie [Pigs in space]: 19 12113498266Sopenharmony_cilock: dns [Pigs in space]: 20 12213498266Sopenharmony_ciunlock: dns [Pigs in space]: 21 12313498266Sopenharmony_cilock: dns [Pigs in space]: 22 12413498266Sopenharmony_ciunlock: dns [Pigs in space]: 23 12513498266Sopenharmony_cilock: cookie [Pigs in space]: 24 12613498266Sopenharmony_ciunlock: cookie [Pigs in space]: 25 12713498266Sopenharmony_cilock: cookie [Pigs in space]: 26 12813498266Sopenharmony_ciunlock: cookie [Pigs in space]: 27 12913498266Sopenharmony_cilock: cookie [Pigs in space]: 28 13013498266Sopenharmony_ciunlock: cookie [Pigs in space]: 29 13113498266Sopenharmony_cilock: cookie [Pigs in space]: 30 13213498266Sopenharmony_ciunlock: cookie [Pigs in space]: 31 13313498266Sopenharmony_cirun 1: set cookie 1, 2 and 3 13413498266Sopenharmony_cilock: dns [Pigs in space]: 32 13513498266Sopenharmony_ciunlock: dns [Pigs in space]: 33 13613498266Sopenharmony_cilock: dns [Pigs in space]: 34 13713498266Sopenharmony_ciunlock: dns [Pigs in space]: 35 13813498266Sopenharmony_ciCLEANUP 13913498266Sopenharmony_cilock: cookie [Pigs in space]: 36 14013498266Sopenharmony_ciunlock: cookie [Pigs in space]: 37 14113498266Sopenharmony_cilock: share [Pigs in space]: 38 14213498266Sopenharmony_ciunlock: share [Pigs in space]: 39 14313498266Sopenharmony_ci*** run 2 14413498266Sopenharmony_ciCURLOPT_SHARE 14513498266Sopenharmony_cilock: share [Pigs in space]: 40 14613498266Sopenharmony_ciunlock: share [Pigs in space]: 41 14713498266Sopenharmony_ciPERFORM 14813498266Sopenharmony_cilock: cookie [Pigs in space]: 42 14913498266Sopenharmony_ciunlock: cookie [Pigs in space]: 43 15013498266Sopenharmony_cilock: dns [Pigs in space]: 44 15113498266Sopenharmony_ciunlock: dns [Pigs in space]: 45 15213498266Sopenharmony_cilock: cookie [Pigs in space]: 46 15313498266Sopenharmony_ciunlock: cookie [Pigs in space]: 47 15413498266Sopenharmony_cilock: cookie [Pigs in space]: 48 15513498266Sopenharmony_ciunlock: cookie [Pigs in space]: 49 15613498266Sopenharmony_cilock: cookie [Pigs in space]: 50 15713498266Sopenharmony_ciunlock: cookie [Pigs in space]: 51 15813498266Sopenharmony_cirun 2: set cookie 4 and 5 15913498266Sopenharmony_cilock: dns [Pigs in space]: 52 16013498266Sopenharmony_ciunlock: dns [Pigs in space]: 53 16113498266Sopenharmony_cilock: dns [Pigs in space]: 54 16213498266Sopenharmony_ciunlock: dns [Pigs in space]: 55 16313498266Sopenharmony_ciCLEANUP 16413498266Sopenharmony_cilock: cookie [Pigs in space]: 56 16513498266Sopenharmony_ciunlock: cookie [Pigs in space]: 57 16613498266Sopenharmony_cilock: share [Pigs in space]: 58 16713498266Sopenharmony_ciunlock: share [Pigs in space]: 59 16813498266Sopenharmony_ci*** run 3 16913498266Sopenharmony_ciCURLOPT_SHARE 17013498266Sopenharmony_cilock: share [Pigs in space]: 60 17113498266Sopenharmony_ciunlock: share [Pigs in space]: 61 17213498266Sopenharmony_ciCURLOPT_COOKIEJAR 17313498266Sopenharmony_ciCURLOPT_COOKIELIST FLUSH 17413498266Sopenharmony_cilock: cookie [Pigs in space]: 62 17513498266Sopenharmony_ciunlock: cookie [Pigs in space]: 63 17613498266Sopenharmony_ciPERFORM 17713498266Sopenharmony_cilock: dns [Pigs in space]: 64 17813498266Sopenharmony_ciunlock: dns [Pigs in space]: 65 17913498266Sopenharmony_cilock: cookie [Pigs in space]: 66 18013498266Sopenharmony_ciunlock: cookie [Pigs in space]: 67 18113498266Sopenharmony_cilock: cookie [Pigs in space]: 68 18213498266Sopenharmony_ciunlock: cookie [Pigs in space]: 69 18313498266Sopenharmony_cilock: cookie [Pigs in space]: 70 18413498266Sopenharmony_ciunlock: cookie [Pigs in space]: 71 18513498266Sopenharmony_cilock: cookie [Pigs in space]: 72 18613498266Sopenharmony_ciunlock: cookie [Pigs in space]: 73 18713498266Sopenharmony_cilock: cookie [Pigs in space]: 74 18813498266Sopenharmony_ciunlock: cookie [Pigs in space]: 75 18913498266Sopenharmony_cirun 3: overwrite cookie 1 and 4, set cookie 6 with and without tailmatch 19013498266Sopenharmony_cilock: dns [Pigs in space]: 76 19113498266Sopenharmony_ciunlock: dns [Pigs in space]: 77 19213498266Sopenharmony_cilock: dns [Pigs in space]: 78 19313498266Sopenharmony_ciunlock: dns [Pigs in space]: 79 19413498266Sopenharmony_ciCLEANUP 19513498266Sopenharmony_cilock: cookie [Pigs in space]: 80 19613498266Sopenharmony_ciunlock: cookie [Pigs in space]: 81 19713498266Sopenharmony_cilock: share [Pigs in space]: 82 19813498266Sopenharmony_ciunlock: share [Pigs in space]: 83 19913498266Sopenharmony_ciCURLOPT_SHARE 20013498266Sopenharmony_cilock: share [Pigs in space]: 84 20113498266Sopenharmony_ciunlock: share [Pigs in space]: 85 20213498266Sopenharmony_ciCURLOPT_COOKIELIST ALL 20313498266Sopenharmony_cilock: cookie [Pigs in space]: 86 20413498266Sopenharmony_ciunlock: cookie [Pigs in space]: 87 20513498266Sopenharmony_ciCURLOPT_COOKIEJAR 20613498266Sopenharmony_ciCURLOPT_COOKIELIST RELOAD 20713498266Sopenharmony_cilock: cookie [Pigs in space]: 88 20813498266Sopenharmony_ciunlock: cookie [Pigs in space]: 89 20913498266Sopenharmony_cilock: cookie [Pigs in space]: 90 21013498266Sopenharmony_ciunlock: cookie [Pigs in space]: 91 21113498266Sopenharmony_ciloaded cookies: 21213498266Sopenharmony_ci----------------- 21313498266Sopenharmony_ci www.host.foo.com FALSE / FALSE 1993463787 test6 six_more 21413498266Sopenharmony_ci .www.host.foo.com TRUE / FALSE 1993463787 test6 six 21513498266Sopenharmony_ci .host.foo.com TRUE / FALSE 1896263787 test5 five 21613498266Sopenharmony_ci .host.foo.com TRUE / FALSE 2061978987 test4 overwritten4 21713498266Sopenharmony_ci .foo.com TRUE / FALSE 1896263787 test3 three 21813498266Sopenharmony_ci .host.foo.com TRUE / FALSE 1896263787 test2 two 21913498266Sopenharmony_ci .foo.com TRUE / FALSE 1993463787 test1 overwritten1 22013498266Sopenharmony_ci .host.foo.com TRUE / FALSE 1896263787 injected yes 22113498266Sopenharmony_ci----------------- 22213498266Sopenharmony_citry SHARE_CLEANUP... 22313498266Sopenharmony_cilock: share [Pigs in space]: 92 22413498266Sopenharmony_ciunlock: share [Pigs in space]: 93 22513498266Sopenharmony_ciSHARE_CLEANUP failed, correct 22613498266Sopenharmony_ciCLEANUP 22713498266Sopenharmony_cilock: cookie [Pigs in space]: 94 22813498266Sopenharmony_ciunlock: cookie [Pigs in space]: 95 22913498266Sopenharmony_cilock: share [Pigs in space]: 96 23013498266Sopenharmony_ciunlock: share [Pigs in space]: 97 23113498266Sopenharmony_ciSHARE_CLEANUP 23213498266Sopenharmony_cilock: share [Pigs in space]: 98 23313498266Sopenharmony_ciunlock: share [Pigs in space]: 99 23413498266Sopenharmony_ciGLOBAL_CLEANUP 23513498266Sopenharmony_ci</stdout> 23613498266Sopenharmony_ci<file name="%LOGDIR/jar%TESTNUMBER" mode="text"> 23713498266Sopenharmony_ci# Netscape HTTP Cookie File 23813498266Sopenharmony_ci# https://curl.se/docs/http-cookies.html 23913498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk. 24013498266Sopenharmony_ci 24113498266Sopenharmony_ciwww.host.foo.com FALSE / FALSE 1993463787 test6 six_more 24213498266Sopenharmony_ci.www.host.foo.com TRUE / FALSE 1993463787 test6 six 24313498266Sopenharmony_ci.host.foo.com TRUE / FALSE 1896263787 test5 five 24413498266Sopenharmony_ci.host.foo.com TRUE / FALSE 2061978987 test4 overwritten4 24513498266Sopenharmony_ci.foo.com TRUE / FALSE 1896263787 test3 three 24613498266Sopenharmony_ci.host.foo.com TRUE / FALSE 1896263787 test2 two 24713498266Sopenharmony_ci.foo.com TRUE / FALSE 1993463787 test1 overwritten1 24813498266Sopenharmony_ci.host.foo.com TRUE / FALSE 1896263787 injected yes 24913498266Sopenharmony_ci</file> 25013498266Sopenharmony_ci</verify> 25113498266Sopenharmony_ci</testcase> 252