test1128 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: 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. <data1>
  22. HTTP/1.1 200 OK
  23. Date: Tue, 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/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -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. <protocol>
  48. GET /%TESTNUMBER HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  53. GET /%TESTNUMBER0001 HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  58. </protocol>
  59. <stdout>
  60. HTTP/1.1 200 OK
  61. Date: Tue, 09 Nov 2010 14:49:00 GMT
  62. Server: test-server/fake
  63. Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
  64. Content-Length: 11
  65. Content-Type: text/html
  66. HTTP/1.1 200 OK
  67. Date: Tue, 09 Nov 2010 14:49:01 GMT
  68. Server: test-server/fake
  69. Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
  70. Content-Length: 11
  71. Content-Type: text/html
  72. 0123456789
  73. </stdout>
  74. </verify>
  75. </testcase>