test15 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.1 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/%TESTNUMBER --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.1 200 OK
  36. Fake: yes
  37. Fake: yes
  38. Fake: yes
  39. Content-Length: 26
  40. Repeated nonsense-headers
  41. http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER 200 26
  42. </stdout>
  43. <protocol>
  44. GET /want/%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. </protocol>
  49. </verify>
  50. </testcase>