test194 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <datacheck>
  26. HTTP/1.1 416 Requested Range Not Satisfiable swsclose
  27. Date: Fri, 24 Oct 2003 21:33:12 GMT
  28. Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
  29. Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
  30. ETag: "ab57a-507-3f9968f3"
  31. Accept-Ranges: bytes
  32. Content-Length: 4
  33. Content-Range: bytes */87
  34. Content-Type: image/gif
  35. Connection: close
  36. </datacheck>
  37. </reply>
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. </server>
  43. <name>
  44. HTTP resume transfer with the whole file already downloaded and --fail
  45. </name>
  46. <command>
  47. http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -C 87 --fail
  48. </command>
  49. </client>
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET /want/%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. Range: bytes=87-
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. </protocol>
  59. <errorcode>
  60. 0
  61. </errorcode>
  62. </verify>
  63. </testcase>