test197 1011 B

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