test1128 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 nocheck="yes">
  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. <data1>
  22. HTTP/1.1 200 OK
  23. Date: Thu, 09 Nov 2010 14:49:01 GMT
  24. Server: test-server/fake
  25. Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
  26. Content-Length: 11
  27. Content-Type: text/html
  28. 0123456789
  29. </data1>
  30. </reply>
  31. #
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. HTTP 200 If-Modified-Since with old+new documents
  39. </name>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/1128 http://%HOSTIP:%HTTPPORT/11280001 -z "dec 12 12:00:00 1999 GMT"
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. GET /1128 HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. Accept: */*
  54. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  55. GET /11280001 HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. Accept: */*
  58. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  59. </protocol>
  60. <stdout>
  61. HTTP/1.1 200 OK
  62. Date: Thu, 09 Nov 2010 14:49:00 GMT
  63. Server: test-server/fake
  64. Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
  65. Content-Length: 11
  66. Content-Type: text/html
  67. HTTP/1.1 200 OK
  68. Date: Thu, 09 Nov 2010 14:49:01 GMT
  69. Server: test-server/fake
  70. Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
  71. Content-Length: 11
  72. Content-Type: text/html
  73. 0123456789
  74. </stdout>
  75. </verify>
  76. </testcase>