test15 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 nocheck="yes">
  12. HTTP/1.4 200 OK
  13. Fake: yes
  14. Fake: yes
  15. Fake: yes
  16. Content-Length: 26
  17. Repeated nonsense-headers
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. --write-out test
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/want/15 --write-out "%{url_effective} %{http_code} %{size_download}\n"
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <stdout>
  35. HTTP/1.4 200 OK
  36. Fake: yes
  37. Fake: yes
  38. Fake: yes
  39. Content-Length: 26
  40. Repeated nonsense-headers
  41. http://%HOSTIP:%HTTPPORT/want/15 200 26
  42. </stdout>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. GET /want/15 HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. </protocol>
  51. </verify>
  52. </testcase>