test513 668 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. </reply>
  6. # Client-side
  7. <client>
  8. <server>
  9. http
  10. </server>
  11. # tool is what to use instead of 'curl'
  12. <tool>
  13. lib513
  14. </tool>
  15. <name>
  16. send HTTP POST using read callback that returns CURL_READFUNC_ABORT
  17. </name>
  18. # the 1s post-command delay helps to prevent a spurious failure on s390
  19. <command delay="1">
  20. http://%HOSTIP:%HTTPPORT/513
  21. </command>
  22. </client>
  23. #
  24. # Verify data after the test has been "shot"
  25. <verify>
  26. <protocol>
  27. POST /513 HTTP/1.1
  28. Host: %HOSTIP:%HTTPPORT
  29. Accept: */*
  30. Content-Length: 1
  31. Content-Type: application/x-www-form-urlencoded
  32. </protocol>
  33. # 42 - aborted by callback
  34. <errorcode>
  35. 42
  36. </errorcode>
  37. </verify>
  38. </testcase>