test78 1016 B

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