quickjs-tart

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

test516 (683B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 FORM
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK swsclose
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Length: 3
     18 
     19 OK
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <features>
     26 form-api
     27 </features>
     28 <server>
     29 http
     30 </server>
     31 # tool is what to use instead of 'curl'
     32 <tool>
     33 lib%TESTNUMBER
     34 </tool>
     35 
     36 <name>
     37 make an HTTPPOST set to NULL
     38 </name>
     39 <command>
     40 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     41 </command>
     42 </client>
     43 
     44 #
     45 # Verify data after the test has been "shot"
     46 <verify>
     47 <protocol>
     48 POST /%TESTNUMBER HTTP/1.1
     49 Host: %HOSTIP:%HTTPPORT
     50 Accept: */*
     51 Content-Length: 0
     52 
     53 </protocol>
     54 </verify>
     55 </testcase>