test1271 677 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --write-out
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 This is a weirdo text message swsclose
  13. Content-Length: 4
  14. Connection: close
  15. Moo
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. --write-out from file with empty file
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w @log/blank%TESTNUMBER
  28. </command>
  29. <file name="log/blank%TESTNUMBER">
  30. </file>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <protocol>
  35. GET /we/want/our/%TESTNUMBER HTTP/1.1
  36. Host: %HOSTIP:%HTTPPORT
  37. User-Agent: curl/%VERSION
  38. Accept: */*
  39. </protocol>
  40. </verify>
  41. </testcase>