test1680 728 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --clobber
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.0 200 OK
  14. Connection: close
  15. Content-Type: text/plain
  16. Content-Length: 4
  17. foo
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <name>
  24. HTTP GET with explicit clobber
  25. </name>
  26. <server>
  27. http
  28. </server>
  29. <features>
  30. http
  31. </features>
  32. <command option="no-output">
  33. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/exist%TESTNUMBER --clobber
  34. </command>
  35. <file name="log/exist%TESTNUMBER">
  36. to be overwritten
  37. </file>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <file name="log/exist%TESTNUMBER">
  43. HTTP/1.0 200 OK
  44. Connection: close
  45. Content-Type: text/plain
  46. Content-Length: 4
  47. foo
  48. </file>
  49. </verify>
  50. </testcase>