test78 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/%TESTNUMBER -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. <protocol>
  54. GET /%TESTNUMBER HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT
  59. </protocol>
  60. </verify>
  61. </testcase>