test192 735 B

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