test1127 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: Tue, 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: Tue, 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/%TESTNUMBER -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. <protocol>
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  52. </protocol>
  53. </verify>
  54. </testcase>