test587 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data>
  6. </data>
  7. </reply>
  8. # Client-side
  9. <client>
  10. <server>
  11. http
  12. </server>
  13. # tool is what to use instead of 'curl'
  14. <tool>
  15. lib587
  16. </tool>
  17. <name>
  18. HTTP multi-part formpost with aborted read callback
  19. </name>
  20. <command>
  21. http://%HOSTIP:%HTTPPORT/587
  22. </command>
  23. </client>
  24. #
  25. # Verify data after the test has been "shot"
  26. <verify>
  27. <strippart>
  28. s/^------------------------------[a-z0-9]*/------------------------------/
  29. s/boundary=----------------------------[a-z0-9]*/boundary=----------------------------/
  30. </strippart>
  31. <protocol>
  32. POST /587 HTTP/1.1
  33. Host: %HOSTIP:%HTTPPORT
  34. Accept: */*
  35. Content-Length: 732
  36. Expect: 100-continue
  37. Content-Type: multipart/form-data; boundary=----------------------------
  38. ------------------------------
  39. Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
  40. </protocol>
  41. # CURLE_ABORTED_BY_CALLBACK (42)
  42. <errorcode>
  43. 42
  44. </errorcode>
  45. </verify>
  46. </testcase>