test78 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 6
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. <datacheck>
  25. HTTP/1.1 200 OK
  26. Server: test-server/fake
  27. Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT
  28. ETag: "21025-dc7-39462498"
  29. Accept-Ranges: bytes
  30. Content-Length: 6
  31. Connection: close
  32. Content-Type: text/html
  33. Funny-head: yesyes
  34. </datacheck>
  35. </reply>
  36. #
  37. # Client-side
  38. <client>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP with -z "newer date"
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/78 -z "dec 12 11:00:00 1999 GMT"
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <strip>
  53. ^User-Agent:.*
  54. </strip>
  55. <protocol>
  56. GET /78 HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT
  60. </protocol>
  61. </verify>
  62. </testcase>