test3010 755 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP Basic
  6. RETRY-AFTER
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 301 Moved Permanently
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Content-Length: 0
  17. Retry-After: 2
  18. Location: /%TESTNUMBER0002
  19. </data>
  20. <data2>
  21. HTTP/1.1 200 OK
  22. Date: Tue, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fake
  24. Content-Type: text/html
  25. Content-Length: 0
  26. </data2>
  27. </reply>
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. HTTP retry-after reset
  35. </name>
  36. <tool>
  37. lib%TESTNUMBER
  38. </tool>
  39. <command>
  40. %HOSTIP:%HTTPPORT/%TESTNUMBER
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <stdout>
  46. Retry-After 2
  47. Retry-After 0
  48. </stdout>
  49. </verify>
  50. </testcase>