Git init
[external/curl.git] / tests / data / test513
1 <testcase>
2 #
3 # Server-side
4 <reply>
5 </reply>
6
7 # Client-side
8 <client>
9 <server>
10 http
11 </server>
12 # tool is what to use instead of 'curl'
13 <tool>
14 lib513
15 </tool>
16
17  <name>
18 send HTTP POST using read callback that returns CURL_READFUNC_ABORT
19  </name>
20 # the 1s post-command delay helps to prevent a spurious failure on s390
21  <command delay="1">
22 http://%HOSTIP:%HTTPPORT/513
23 </command>
24 </client>
25
26 #
27 # Verify data after the test has been "shot"
28 <verify>
29 <protocol>
30 POST /513 HTTP/1.1\r
31 Host: %HOSTIP:%HTTPPORT\r
32 Accept: */*\r
33 Content-Length: 1\r
34 Content-Type: application/x-www-form-urlencoded\r
35 \r
36 </protocol>
37 # 42 - aborted by callback
38 <errorcode>
39 42
40 </errorcode>
41 </verify>
42 </testcase>