test268 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/%TESTNUMBER
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. POST /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Content-Length: 0
  47. Content-Type: application/x-www-form-urlencoded
  48. </protocol>
  49. </verify>
  50. </testcase>