test1635 860 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. RETRY-AFTER
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 429 too many requests swsbounce
  14. Retry-After: 1
  15. Content-Length: 4
  16. moo
  17. </data>
  18. <data1 nocheck="yes">
  19. HTTP/1.1 200 OK
  20. Content-Length: 4
  21. Connection: close
  22. hey
  23. </data1>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. --retry with a 429 response and Retry-After: and --fail-with-body
  33. </name>
  34. <command option="no-include">
  35. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1 --fail-with-body
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. </protocol>
  51. <stdout>
  52. moo
  53. hey
  54. </stdout>
  55. </verify>
  56. </testcase>