test192 746 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: Tue, 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/%TESTNUMBER -w "%{num_connects}\n"
  30. </command>
  31. </client>
  32. #
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <protocol>
  36. GET /%TESTNUMBER HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. User-Agent: curl/%VERSION
  39. Accept: */*
  40. </protocol>
  41. <stdout>
  42. HTTP/1.1 200 OK
  43. Date: Tue, 09 Nov 2010 14:49:00 GMT
  44. Content-Length: 8
  45. Connection: close
  46. monster
  47. 1
  48. </stdout>
  49. </verify>
  50. </testcase>