quickjs-tart

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

test581 (753B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 multi
      7 Duplicate-header
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 all good!
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Type: text/html
     18 Content-Length: 0
     19 Connection: close
     20 Content-Type: changed/my/mind
     21 
     22 </data>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <features>
     31 http
     32 </features>
     33 # tool is what to use instead of 'curl'
     34 <tool>
     35 lib507
     36 </tool>
     37 
     38 <name>
     39 multi interface, multiple Content-Type: headers
     40 </name>
     41 <command>
     42 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     43 </command>
     44 </client>
     45 
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <protocol>
     49 GET /%TESTNUMBER HTTP/1.1
     50 Host: %HOSTIP:%HTTPPORT
     51 Accept: */*
     52 
     53 </protocol>
     54 </verify>
     55 </testcase>