Imported Upstream version 7.32.0
[platform/upstream/curl.git] / tests / data / test587
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\r
43 Host: %HOSTIP:%HTTPPORT\r
44 Accept: */*\r
45 Content-Length: 718\r
46 Expect: 100-continue\r
47 Content-Type: multipart/form-data; boundary=----------------------------\r
48 \r
49 ------------------------------\r
50 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"\r
51 \r
52 </protocol>
53 # CURLE_ABORTED_BY_CALLBACK (42)
54 <errorcode>
55 42
56 </errorcode>
57 </verify>
58 </testcase>