test1424 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="%LOGDIR/outfile%TESTNUMBER">
  47. original contents
  48. </file>
  49. <command option="no-output,no-include">
  50. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 11:00:00 1999 GMT" -o %LOGDIR/outfile%TESTNUMBER
  51. </command>
  52. </client>
  53. #
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <protocol>
  57. GET /%TESTNUMBER HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT
  62. </protocol>
  63. <file1 name="%LOGDIR/outfile%TESTNUMBER">
  64. original contents
  65. </file1>
  66. </verify>
  67. </testcase>