test1424 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 nocheck="yes">
  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 GET -o fname without Content-Disposition (unmet time condition)
  45. </name>
  46. <file name="log/outfile1424">
  47. original contents
  48. </file>
  49. <command option="no-output,no-include">
  50. http://%HOSTIP:%HTTPPORT/1424 -z "dec 12 11:00:00 1999 GMT" -o log/outfile1424
  51. </command>
  52. </client>
  53. #
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <strip>
  57. ^User-Agent:.*
  58. </strip>
  59. <protocol>
  60. GET /1424 HTTP/1.1
  61. Host: %HOSTIP:%HTTPPORT
  62. Accept: */*
  63. If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT
  64. </protocol>
  65. <file1 name="log/outfile1424">
  66. original contents
  67. </file1>
  68. </verify>
  69. </testcase>