test197 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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: Tue, 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: Tue, 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/%TESTNUMBER --retry 1000
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. GET /%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. </protocol>
  52. <stdout>
  53. HTTP/1.1 503 OK swsbounce
  54. Date: Tue, 09 Nov 2010 14:49:00 GMT
  55. Content-Length: 21
  56. server not available
  57. HTTP/1.1 200 OK
  58. Date: Tue, 09 Nov 2010 14:49:00 GMT
  59. Content-Length: 3
  60. Connection: close
  61. ok
  62. </stdout>
  63. </verify>
  64. </testcase>