quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test444 (5527B)


      1 <testcase>
      2 # perl:
      3 #
      4 #for(1 .. 200) {
      5 #
      6 #}
      7 #
      8 <info>
      9 <keywords>
     10 HTTP
     11 cookies
     12 --resolve
     13 </keywords>
     14 </info>
     15 
     16 #
     17 # Server-side
     18 <reply>
     19 <data>
     20 HTTP/1.1 200 OK
     21 Date: Tue, 09 Nov 2010 14:49:00 GMT
     22 Server: test-server/fake
     23 Content-Length: 6
     24 Set-Cookie: cookie-1=yes;
     25 Set-Cookie: cookie-2=yes;
     26 Set-Cookie: cookie-3=yes;
     27 Set-Cookie: cookie-4=yes;
     28 Set-Cookie: cookie-5=yes;
     29 Set-Cookie: cookie-6=yes;
     30 Set-Cookie: cookie-7=yes;
     31 Set-Cookie: cookie-8=yes;
     32 Set-Cookie: cookie-9=yes;
     33 Set-Cookie: cookie-10=yes;
     34 Set-Cookie: cookie-11=yes;
     35 Set-Cookie: cookie-12=yes;
     36 Set-Cookie: cookie-13=yes;
     37 Set-Cookie: cookie-14=yes;
     38 Set-Cookie: cookie-15=yes;
     39 Set-Cookie: cookie-16=yes;
     40 Set-Cookie: cookie-17=yes;
     41 Set-Cookie: cookie-18=yes;
     42 Set-Cookie: cookie-19=yes;
     43 Set-Cookie: cookie-20=yes;
     44 Set-Cookie: cookie-21=yes;
     45 Set-Cookie: cookie-22=yes;
     46 Set-Cookie: cookie-23=yes;
     47 Set-Cookie: cookie-24=yes;
     48 Set-Cookie: cookie-25=yes;
     49 Set-Cookie: cookie-26=yes;
     50 Set-Cookie: cookie-27=yes;
     51 Set-Cookie: cookie-28=yes;
     52 Set-Cookie: cookie-29=yes;
     53 Set-Cookie: cookie-30=yes;
     54 Set-Cookie: cookie-31=yes;
     55 Set-Cookie: cookie-32=yes;
     56 Set-Cookie: cookie-33=yes;
     57 Set-Cookie: cookie-34=yes;
     58 Set-Cookie: cookie-35=yes;
     59 Set-Cookie: cookie-36=yes;
     60 Set-Cookie: cookie-37=yes;
     61 Set-Cookie: cookie-38=yes;
     62 Set-Cookie: cookie-39=yes;
     63 Set-Cookie: cookie-40=yes;
     64 Set-Cookie: cookie-41=yes;
     65 Set-Cookie: cookie-42=yes;
     66 Set-Cookie: cookie-43=yes;
     67 Set-Cookie: cookie-44=yes;
     68 Set-Cookie: cookie-45=yes;
     69 Set-Cookie: cookie-46=yes;
     70 Set-Cookie: cookie-47=yes;
     71 Set-Cookie: cookie-48=yes;
     72 Set-Cookie: cookie-49=yes;
     73 Set-Cookie: cookie-50=yes;
     74 Set-Cookie: cookie-51=yes;
     75 Set-Cookie: cookie-52=yes;
     76 Set-Cookie: cookie-53=yes;
     77 Set-Cookie: cookie-54=yes;
     78 Set-Cookie: cookie-55=yes;
     79 Set-Cookie: cookie-56=yes;
     80 Set-Cookie: cookie-57=yes;
     81 Set-Cookie: cookie-58=yes;
     82 Set-Cookie: cookie-59=yes;
     83 Set-Cookie: cookie-60=yes;
     84 Set-Cookie: cookie-61=yes;
     85 Set-Cookie: cookie-62=yes;
     86 Set-Cookie: cookie-63=yes;
     87 Set-Cookie: cookie-64=yes;
     88 Set-Cookie: cookie-65=yes;
     89 Set-Cookie: cookie-66=yes;
     90 Set-Cookie: cookie-67=yes;
     91 Set-Cookie: cookie-68=yes;
     92 Set-Cookie: cookie-69=yes;
     93 Set-Cookie: cookie-70=yes;
     94 Set-Cookie: cookie-71=yes;
     95 Set-Cookie: cookie-72=yes;
     96 Set-Cookie: cookie-73=yes;
     97 Set-Cookie: cookie-74=yes;
     98 Set-Cookie: cookie-75=yes;
     99 Set-Cookie: cookie-76=yes;
    100 Set-Cookie: cookie-77=yes;
    101 Set-Cookie: cookie-78=yes;
    102 Set-Cookie: cookie-79=yes;
    103 Set-Cookie: cookie-80=yes;
    104 
    105 -foo-
    106 </data>
    107 </reply>
    108 
    109 #
    110 # Client-side
    111 <client>
    112 <server>
    113 http
    114 </server>
    115 <name>
    116 Many Set-Cookie response headers
    117 </name>
    118 <command>
    119 http://attack.invalid:%HTTPPORT/a/b/%TESTNUMBER -c %LOGDIR/cookie%TESTNUMBER --resolve attack.invalid:%HTTPPORT:%HOSTIP
    120 </command>
    121 <features>
    122 cookies
    123 </features>
    124 </client>
    125 
    126 #
    127 # Verify data after the test has been "shot"
    128 <verify>
    129 <protocol>
    130 GET /a/b/%TESTNUMBER HTTP/1.1
    131 Host: attack.invalid:%HTTPPORT
    132 User-Agent: curl/%VERSION
    133 Accept: */*
    134 
    135 </protocol>
    136 <file name="%LOGDIR/cookie%TESTNUMBER" mode="text">
    137 # Netscape HTTP Cookie File
    138 # https://curl.se/docs/http-cookies.html
    139 # This file was generated by libcurl! Edit at your own risk.
    140 
    141 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-50	yes
    142 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-49	yes
    143 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-48	yes
    144 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-47	yes
    145 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-46	yes
    146 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-45	yes
    147 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-44	yes
    148 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-43	yes
    149 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-42	yes
    150 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-41	yes
    151 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-40	yes
    152 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-39	yes
    153 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-38	yes
    154 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-37	yes
    155 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-36	yes
    156 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-35	yes
    157 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-34	yes
    158 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-33	yes
    159 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-32	yes
    160 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-31	yes
    161 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-30	yes
    162 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-29	yes
    163 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-28	yes
    164 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-27	yes
    165 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-26	yes
    166 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-25	yes
    167 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-24	yes
    168 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-23	yes
    169 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-22	yes
    170 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-21	yes
    171 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-20	yes
    172 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-19	yes
    173 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-18	yes
    174 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-17	yes
    175 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-16	yes
    176 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-15	yes
    177 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-14	yes
    178 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-13	yes
    179 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-12	yes
    180 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-11	yes
    181 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-10	yes
    182 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-9	yes
    183 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-8	yes
    184 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-7	yes
    185 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-6	yes
    186 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-5	yes
    187 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-4	yes
    188 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-3	yes
    189 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-2	yes
    190 attack.invalid	FALSE	/a/b/	FALSE	0	cookie-1	yes
    191 </file>
    192 </verify>
    193 </testcase>