test366 634 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Content-Length: 21
  16. Retry-After: 200
  17. server not available
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP --retry-max-time with too long Retry-After
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 2 --retry-max-time 10
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. GET /%TESTNUMBER HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. </protocol>
  42. </verify>
  43. </testcase>