2
0

test1634 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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>
  13. HTTP/1.1 429 too many requests swsbounce
  14. Retry-After: 1
  15. Content-Length: 4
  16. moo
  17. </data>
  18. <data1>
  19. HTTP/1.1 200 OK
  20. Content-Length: 4
  21. Connection: close
  22. hey
  23. </data1>
  24. <datacheck>
  25. HTTP/1.1 429 too many requests swsbounce
  26. Retry-After: 1
  27. Content-Length: 4
  28. HTTP/1.1 200 OK
  29. Content-Length: 4
  30. Connection: close
  31. hey
  32. </datacheck>
  33. </reply>
  34. #
  35. # Client-side
  36. <client>
  37. <server>
  38. http
  39. </server>
  40. <name>
  41. --retry with a 429 response and Retry-After: and --fail
  42. </name>
  43. <command>
  44. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1 --fail
  45. </command>
  46. </client>
  47. #
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <protocol>
  51. GET /%TESTNUMBER HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. GET /%TESTNUMBER HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. User-Agent: curl/%VERSION
  58. Accept: */*
  59. </protocol>
  60. </verify>
  61. </testcase>