1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6FORM 7flaky 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<data> 15</data> 16</reply> 17 18# Client-side 19<client> 20<features> 21form-api 22</features> 23<server> 24http 25</server> 26# tool is what to use instead of 'curl' 27<tool> 28lib%TESTNUMBER 29</tool> 30 31<name> 32HTTP multi-part formpost with aborted read callback 33</name> 34# Add a delay to give server time to write its output since we otherwise might 35# not even give it enough time to write its lock file. 36 <command delay="1"> 37http://%HOSTIP:%HTTPPORT/%TESTNUMBER 38</command> 39</client> 40 41# 42# Verify data after the test has been "shot" 43<verify> 44<strippart> 45s/^--------------------------[A-Za-z0-9]*/------------------------------/ 46s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ 47</strippart> 48<protocol> 49POST /%TESTNUMBER HTTP/1.1 50Host: %HOSTIP:%HTTPPORT 51Accept: */* 52Content-Length: 780 53Content-Type: multipart/form-data; boundary=---------------------------- 54 55------------------------------ 56Content-Disposition: form-data; name="sendfile"; filename="postit2.c" 57 58</protocol> 59# CURLE_ABORTED_BY_CALLBACK (42) 60<errorcode> 6142 62</errorcode> 63</verify> 64</testcase> 65