test249 823 B

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