quickjs-tart

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

test158 (944B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 </keywords>
      7 </info>
      8 
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 100 Continue swsclose
     13 Silly-header: yeeeees
     14 
     15 </data>
     16 </reply>
     17 
     18 # Client-side
     19 <client>
     20 <features>
     21 Mime
     22 </features>
     23 <server>
     24 http
     25 </server>
     26 <name>
     27 HTTP multipart formpost with only a 100 reply
     28 </name>
     29 <command>
     30 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F name=daniel
     31 </command>
     32 </client>
     33 
     34 # Verify data after the test has been "shot"
     35 <verify>
     36 <strip>
     37 ^Content-Type: multipart/form-data.*
     38 ^-----------------------.*
     39 </strip>
     40 <protocol>
     41 POST /%TESTNUMBER HTTP/1.1
     42 Host: %HOSTIP:%HTTPPORT
     43 User-Agent: curl/%VERSION
     44 Accept: */*
     45 Content-Length: 157
     46 Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc
     47 
     48 ------------------------------4f12fcdaa3bc
     49 Content-Disposition: form-data; name="name"
     50 
     51 daniel
     52 ------------------------------4f12fcdaa3bc--
     53 </protocol>
     54 <errorcode>
     55 52
     56 </errorcode>
     57 </verify>
     58 </testcase>