xref: /curl/tests/data/test1513 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4PROGRESSFUNCTION
5DELAY
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 204 PARTIAL
13X-Comment: partial response to keep the client waiting
14</data>
15<postcmd>
16wait 10
17</postcmd>
18</reply>
19
20# Client-side
21<client>
22<server>
23http
24</server>
25<tool>
26lib%TESTNUMBER
27</tool>
28<name>
29return failure immediately from progress callback
30</name>
31
32# this server/host won't be used for real
33<command>
34http://%HOSTIP:%HTTPPORT/%TESTNUMBER
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<protocol>
41</protocol>
42# 42 == CURLE_ABORTED_BY_CALLBACK
43<errorcode>
4442
45</errorcode>
46<stdout>
47PROGRESSFUNCTION called
48</stdout>
49</verify>
50</testcase>
51