test513 762 B

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