test194 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Content-Range
  7. Resume
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 416 Requested Range Not Satisfiable swsclose
  14. Date: Fri, 24 Oct 2003 21:33:12 GMT
  15. Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
  16. Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
  17. ETag: "ab57a-507-3f9968f3"
  18. Accept-Ranges: bytes
  19. Content-Length: 4
  20. Content-Range: bytes */87
  21. Content-Type: image/gif
  22. Connection: close
  23. bad
  24. </data>
  25. </reply>
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP resume transfer with the whole file already downloaded and --fail
  33. </name>
  34. <command>
  35. http://%HOSTIP:%HTTPPORT/want/194 -C 87 --fail
  36. </command>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET /want/194 HTTP/1.1
  45. Range: bytes=87-
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. </protocol>
  49. </verify>
  50. </testcase>