test197 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 503 OK swsbounce
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: 21
  15. server not available
  16. </data>
  17. <data1 nocheck="yes">
  18. HTTP/1.1 200 OK
  19. Date: Thu, 09 Nov 2010 14:49:00 GMT
  20. Content-Length: 3
  21. Connection: close
  22. ok
  23. </data1>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP GET --retry on 503 error with output to stdout
  33. </name>
  34. <command>
  35. http://%HOSTIP:%HTTPPORT/197 --retry 1000
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. GET /197 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. GET /197 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. </protocol>
  52. <stdout>
  53. HTTP/1.1 503 OK swsbounce
  54. Date: Thu, 09 Nov 2010 14:49:00 GMT
  55. Content-Length: 21
  56. server not available
  57. HTTP/1.1 200 OK
  58. Date: Thu, 09 Nov 2010 14:49:00 GMT
  59. Content-Length: 3
  60. Connection: close
  61. ok
  62. </stdout>
  63. </verify>
  64. </testcase>