test1513 682 B

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