test589 672 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP MIME
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 3
  17. OK
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. # tool is what to use instead of 'curl'
  26. <tool>
  27. lib589
  28. </tool>
  29. <name>
  30. make a HTTP MIME POST set to NULL
  31. </name>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/589
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. POST /589 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. Content-Length: 0
  47. </protocol>
  48. </verify>
  49. </testcase>