2014-01-03 19:25:09 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
2014-01-04 04:01:55 +08:00
|
|
|
PROGRESSFUNCTION
|
2014-01-03 19:25:09 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2015-03-22 06:57:32 +08:00
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 204 PARTIAL
|
|
|
|
X-Comment: partial response to keep the client waiting
|
|
|
|
</data>
|
|
|
|
<postcmd>
|
|
|
|
wait 10
|
|
|
|
</postcmd>
|
2014-01-03 19:25:09 +08:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
2014-01-25 06:14:00 +08:00
|
|
|
http
|
2015-03-22 06:57:32 +08:00
|
|
|
</server>
|
2014-01-03 19:25:09 +08:00
|
|
|
<tool>
|
|
|
|
lib1513
|
|
|
|
</tool>
|
|
|
|
<name>
|
|
|
|
return failure immediately from progress callback
|
|
|
|
</name>
|
|
|
|
|
|
|
|
# this server/host won't be used for real
|
|
|
|
<command>
|
2015-03-22 06:57:32 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/1513
|
2014-01-03 19:25:09 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
</protocol>
|
|
|
|
# 42 == CURLE_ABORTED_BY_CALLBACK
|
|
|
|
<errorcode>
|
|
|
|
42
|
|
|
|
</errorcode>
|
2015-11-25 06:33:37 +08:00
|
|
|
<stdout>
|
|
|
|
PROGRESSFUNCTION called
|
|
|
|
</stdout>
|
2014-01-03 19:25:09 +08:00
|
|
|
</verify>
|
|
|
|
</testcase>
|