test268 808 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.0 200 OK
  13. Server: test-server/fake
  14. Content-Type: text/html
  15. Content-Length: 0
  16. this is data even though Content-Length is set to zero
  17. </data>
  18. <datacheck>
  19. HTTP/1.0 200 OK
  20. Server: test-server/fake
  21. Content-Type: text/html
  22. Content-Length: 0
  23. </datacheck>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP POST a non-existing file
  33. </name>
  34. <command>
  35. -d @nonesuchfile http://%HOSTIP:%HTTPPORT/268
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. POST /268 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. Content-Length: 0
  49. Content-Type: application/x-www-form-urlencoded
  50. </protocol>
  51. </verify>
  52. </testcase>