2
0

test192 682 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data nocheck="yes">
  6. HTTP/1.1 200 OK
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Content-Length: 8
  9. Connection: close
  10. monster
  11. </data>
  12. </reply>
  13. #
  14. # Client-side
  15. <client>
  16. <server>
  17. http
  18. </server>
  19. <name>
  20. HTTP GET -w num_connects with one simple connect
  21. </name>
  22. <command>
  23. http://%HOSTIP:%HTTPPORT/192 -w "%{num_connects}\n"
  24. </command>
  25. </client>
  26. #
  27. # Verify data after the test has been "shot"
  28. <verify>
  29. <strip>
  30. ^User-Agent:.*
  31. </strip>
  32. <protocol>
  33. GET /192 HTTP/1.1
  34. Host: %HOSTIP:%HTTPPORT
  35. Accept: */*
  36. </protocol>
  37. <stdout>
  38. HTTP/1.1 200 OK
  39. Date: Thu, 09 Nov 2010 14:49:00 GMT
  40. Content-Length: 8
  41. Connection: close
  42. monster
  43. 1
  44. </stdout>
  45. </verify>
  46. </testcase>