test15 749 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Server-side
  2. <reply>
  3. <data nocheck=true>
  4. HTTP/1.4 200 OK
  5. Fake: yes
  6. Fake: yes
  7. Fake: yes
  8. Content-Length: 26
  9. Repeated nonsense-headers
  10. </data>
  11. </reply>
  12. # Client-side
  13. <client>
  14. <server>
  15. http
  16. </server>
  17. <name>
  18. --write-out test
  19. </name>
  20. <command>
  21. http://%HOSTIP:%HOSTPORT/want/15 --write-out '%{url_effective} %{http_code} %{size_download}\n'
  22. </command>
  23. </test>
  24. # Verify data after the test has been "shot"
  25. <verify>
  26. <stdout>
  27. HTTP/1.4 200 OK
  28. Fake: yes
  29. Fake: yes
  30. Fake: yes
  31. Content-Length: 26
  32. Repeated nonsense-headers
  33. http://127.0.0.1:8999/want/15 200 26
  34. </stdout>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. GET /want/15 HTTP/1.1
  40. Host: 127.0.0.1:8999
  41. Pragma: no-cache
  42. Accept: */*
  43. </protocol>
  44. </verify>