Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 </data>
     14 </reply>
     15 
     16 # Client-side
     17 <client>
     18 <server>
     19 http
     20 </server>
     21 # tool is what to use instead of 'curl'
     22 <tool>
     23 lib587
     24 </tool>
     25 
     26  <name>
     27 HTTP multi-part formpost with aborted read callback
     28  </name>
     29  <command>
     30 http://%HOSTIP:%HTTPPORT/587
     31 </command>
     32 </client>
     33 
     34 #
     35 # Verify data after the test has been "shot"
     36 <verify>
     37 <strippart>
     38 s/^--------------------------[a-z0-9]*/------------------------------/
     39 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
     40 </strippart>
     41 <protocol>
     42 POST /587 HTTP/1.1
     43 Host: %HOSTIP:%HTTPPORT
     44 Accept: */*
     45 Content-Length: 718
     46 Expect: 100-continue
     47 Content-Type: multipart/form-data; boundary=----------------------------
     48 
     49 ------------------------------
     50 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
     51 
     52 </protocol>
     53 # CURLE_ABORTED_BY_CALLBACK (42)
     54 <errorcode>
     55 42
     56 </errorcode>
     57 </verify>
     58 </testcase>
     59