Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test587
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 flaky
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <data>
14 </data>
15 </reply>
16
17 # Client-side
18 <client>
19 <server>
20 http
21 </server>
22 # tool is what to use instead of 'curl'
23 <tool>
24 lib587
25 </tool>
26
27  <name>
28 HTTP multi-part formpost with aborted read callback
29  </name>
30  <command>
31 http://%HOSTIP:%HTTPPORT/587
32 </command>
33 </client>
34
35 #
36 # Verify data after the test has been "shot"
37 <verify>
38 <strippart>
39 s/^--------------------------[a-z0-9]*/------------------------------/
40 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
41 </strippart>
42 <protocol>
43 POST /587 HTTP/1.1
44 Host: %HOSTIP:%HTTPPORT
45 Accept: */*
46 Content-Length: 744
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>