test77 776 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. -z
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 2010 12:10:00 GMT
  17. ETag: "21025-dc7-39462498"
  18. Accept-Ranges: bytes
  19. Content-Length: 6
  20. Connection: close
  21. Content-Type: text/html
  22. -foo-
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP with -z "older date"
  33. </name>
  34. <command>
  35. http://%HOSTIP:%HTTPPORT/77 -z "dec 12 12:00:00 1999 GMT"
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. GET /77 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  49. </protocol>
  50. </verify>
  51. </testcase>