quickjs-tart

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

test27 (935B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 200 Mooo swsclose
     13 Connection: close
     14 Set-Cookie: thewinneris=nowayyouwin; path=/;
     15 Content-Length: 8
     16 
     17 *flopp*
     18 </data>
     19 </reply>
     20 
     21 # Client-side
     22 <client>
     23 <server>
     24 http
     25 </server>
     26 <name>
     27 Get same cookie page several times
     28 </name>
     29 <command>
     30 "http://%HOSTIP:%HTTPPORT/want/{%TESTNUMBER,%TESTNUMBER,%TESTNUMBER}" -b none
     31 </command>
     32 <features>
     33 cookies
     34 </features>
     35 </client>
     36 
     37 # Verify data after the test has been "shot"
     38 <verify>
     39 <protocol>
     40 GET /want/%TESTNUMBER HTTP/1.1
     41 Host: %HOSTIP:%HTTPPORT
     42 User-Agent: curl/%VERSION
     43 Accept: */*
     44 
     45 GET /want/%TESTNUMBER HTTP/1.1
     46 Host: %HOSTIP:%HTTPPORT
     47 User-Agent: curl/%VERSION
     48 Accept: */*
     49 Cookie: thewinneris=nowayyouwin
     50 
     51 GET /want/%TESTNUMBER HTTP/1.1
     52 Host: %HOSTIP:%HTTPPORT
     53 User-Agent: curl/%VERSION
     54 Accept: */*
     55 Cookie: thewinneris=nowayyouwin
     56 
     57 </protocol>
     58 </verify>
     59 </testcase>