test249 837 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. -z
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 304 Not Modified swsclose
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 1910 12:10:00 GMT
  17. ETag: "21025-dc7-39462498"
  18. Accept-Ranges: bytes
  19. Content-Length: 677777
  20. Connection: close
  21. Content-Type: text/html
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP 304 response with "illegal" Content-Length: header
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 12:00:00 1999 GMT"
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET /%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
  46. </protocol>
  47. </verify>
  48. </testcase>