test198 886 B

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