quickjs-tart

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

test172 (1041B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Content-Length: 4
     15 Connection: close
     16 
     17 boo
     18 </data>
     19 </reply>
     20 
     21 # Client-side
     22 <client>
     23 <server>
     24 http
     25 </server>
     26 <name>
     27 HTTP with cookies file and custom added cookie
     28 </name>
     29 <command>
     30 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b %LOGDIR/jar%TESTNUMBER.txt -b "tool=curl; name=fool"
     31 </command>
     32 <file name="%LOGDIR/jar%TESTNUMBER.txt">
     33 # Netscape HTTP Cookie File
     34 # https://curl.se/docs/http-cookies.html
     35 # This file was generated by libcurl! Edit at your own risk.
     36 
     37 .%HOSTIP	TRUE	/silly/	FALSE	0	ismatch	this
     38 .%HOSTIP	TRUE	/	FALSE	0	partmatch	present
     39 %HOSTIP	FALSE	/we/want/	FALSE	22139150993	nodomain	value
     40 </file>
     41 <features>
     42 cookies
     43 </features>
     44 </client>
     45 
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <protocol>
     49 GET /we/want/%TESTNUMBER HTTP/1.1
     50 Host: %HOSTIP:%HTTPPORT
     51 User-Agent: curl/%VERSION
     52 Accept: */*
     53 Cookie: nodomain=value; partmatch=present; tool=curl; name=fool
     54 
     55 </protocol>
     56 </verify>
     57 </testcase>