test198 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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>
  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>
  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. <datacheck>
  26. HTTP/1.1 200 OK
  27. Date: Thu, 09 Nov 2010 14:49:00 GMT
  28. Content-Length: 3
  29. Connection: close
  30. ok
  31. </datacheck>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. HTTP GET --retry on 503 error with output to file
  41. </name>
  42. <command>
  43. http://%HOSTIP:%HTTPPORT/198 --retry 1000
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <strip>
  50. ^User-Agent:.*
  51. </strip>
  52. <protocol>
  53. GET /198 HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. Accept: */*
  56. GET /198 HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. </protocol>
  60. </verify>
  61. </testcase>