Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1555
1 <testcase>
2 <info>
3 <keywords>
4 RECURSIVE_API_CALL
5 </keywords>
6 </info>
7
8 # Server-side
9 <reply>
10 <data nocheck="yes">
11 HTTP/1.1 204 PARTIAL
12 X-Comment: partial response to keep the client waiting
13 </data>
14 <postcmd>
15 wait 10
16 </postcmd>
17 </reply>
18
19 # Client-side
20 <client>
21 <server>
22 http
23 </server>
24 <tool>
25 lib1555
26 </tool>
27  <name>
28 verify api is protected against calls from callbacks
29  </name>
30
31 # this server/host won't be used for real
32  <command>
33 http://%HOSTIP:%HTTPPORT/1555
34 </command>
35 </client>
36
37 # Verify data after the test has been "shot"
38 <verify>
39 <protocol>
40 </protocol>
41 # 42 == CURLE_ABORTED_BY_CALLBACK
42 <errorcode>
43 42
44 </errorcode>
45 <stdout>
46 curl_easy_recv returned 93
47 curl_easy_send returned 93
48 </stdout>
49 </verify>
50 </testcase>