1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05:00
curl/tests/data/test1513

50 lines
696 B
Plaintext
Raw Normal View History

<testcase>
<info>
<keywords>
2014-01-03 15:01:55 -05:00
PROGRESSFUNCTION
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 204 PARTIAL
X-Comment: partial response to keep the client waiting
</data>
<postcmd>
wait 10
</postcmd>
</reply>
# Client-side
<client>
<server>
http
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
return failure immediately from progress callback
</name>
# this server/host won't be used for real
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
</protocol>
# 42 == CURLE_ABORTED_BY_CALLBACK
<errorcode>
42
</errorcode>
<stdout>
PROGRESSFUNCTION called
</stdout>
</verify>
</testcase>