test1127 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. If-Modified-Since
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
  17. Content-Length: 11
  18. Content-Type: text/html
  19. 0123456789
  20. </data>
  21. <datacheck>
  22. HTTP/1.1 200 OK
  23. Date: Thu, 09 Nov 2010 14:49:00 GMT
  24. Server: test-server/fake
  25. Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
  26. Content-Length: 11
  27. Content-Type: text/html
  28. </datacheck>
  29. </reply>
  30. #
  31. # Client-side
  32. <client>
  33. <server>
  34. http
  35. </server>
  36. <name>
  37. HTTP 200 If-Modified-Since with older document
  38. </name>
  39. <command>
  40. http://%HOSTIP:%HTTPPORT/1127 -z "dec 12 12:00:00 1999 GMT"
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <strip>
  47. ^User-Agent:.*
  48. </strip>
  49. <protocol>
  50. GET /1127 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Accept: */*
  53. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  54. </protocol>
  55. </verify>
  56. </testcase>