quickjs-tart

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

test181 (890B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 HTTP/1.0
      7 </keywords>
      8 </info>
      9 
     10 <reply>
     11 <data>
     12 HTTP/1.0 200 OK swsclose
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 
     16 blablabla
     17 
     18 </data>
     19 </reply>
     20 
     21 # Client-side
     22 <client>
     23 <server>
     24 http
     25 </server>
     26 <name>
     27 HTTP 1.0 POST
     28 </name>
     29 <command>
     30 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --data-binary @%LOGDIR/test%TESTNUMBER.txt --http1.0
     31 </command>
     32 <file name="%LOGDIR/test%TESTNUMBER.txt">
     33 Weird
     34      file
     35          to
     36    upload
     37 for
     38    testing
     39 the
     40    POST
     41       feature
     42 </file>
     43 </client>
     44 
     45 # Verify data after the test has been "shot"
     46 <verify>
     47 <protocol>
     48 POST /we/want/%TESTNUMBER HTTP/1.0
     49 Host: %HOSTIP:%HTTPPORT
     50 User-Agent: curl/%VERSION
     51 Accept: */*
     52 Content-Length: 79
     53 Content-Type: application/x-www-form-urlencoded
     54 
     55 Weird
     56      file
     57          to
     58    upload
     59 for
     60    testing
     61 the
     62    POST
     63       feature
     64 </protocol>
     65 </verify>
     66 </testcase>