test587 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. FORM
  7. flaky
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. </data>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <features>
  19. form-api
  20. </features>
  21. <server>
  22. http
  23. </server>
  24. # tool is what to use instead of 'curl'
  25. <tool>
  26. lib%TESTNUMBER
  27. </tool>
  28. <name>
  29. HTTP multi-part formpost with aborted read callback
  30. </name>
  31. # Add a delay to give server time to write its output since we otherwise might
  32. # not even give it enough time to write its lock file.
  33. <command delay="1">
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strippart>
  41. s/^--------------------------[A-Za-z0-9]*/------------------------------/
  42. s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
  43. </strippart>
  44. <protocol>
  45. POST /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. Content-Length: 780
  49. Content-Type: multipart/form-data; boundary=----------------------------
  50. ------------------------------
  51. Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
  52. </protocol>
  53. # CURLE_ABORTED_BY_CALLBACK (42)
  54. <errorcode>
  55. 42
  56. </errorcode>
  57. </verify>
  58. </testcase>