test198 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: Tue, 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: Tue, 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: Tue, 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/%TESTNUMBER --retry 1000
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <protocol>
  50. GET /%TESTNUMBER HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. GET /%TESTNUMBER HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. </protocol>
  59. </verify>
  60. </testcase>