test1040 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <testcase>
  2. # Similar to test92
  3. <info>
  4. <keywords>
  5. HTTP
  6. HTTP GET
  7. Resume
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 416 Invalid range
  14. Connection: close
  15. Content-Length: 0
  16. </data>
  17. # The file data that exists at the start of the test must be included in
  18. # the verification.
  19. <datacheck>
  20. 012345678
  21. 012345678
  22. 012345678
  23. 012345678
  24. 012345678
  25. 012345678
  26. 012345678
  27. 012345678
  28. 012345678
  29. 012345678
  30. HTTP/1.1 416 Invalid range
  31. Connection: close
  32. Content-Length: 0
  33. </datacheck>
  34. </reply>
  35. # Client-side
  36. <client>
  37. <server>
  38. http
  39. </server>
  40. <name>
  41. HTTP GET with resume from end of entirely-downloaded file
  42. </name>
  43. <command>
  44. http://%HOSTIP:%HTTPPORT/1040 -C -
  45. </command>
  46. <file name="log/curl1040.out">
  47. 012345678
  48. 012345678
  49. 012345678
  50. 012345678
  51. 012345678
  52. 012345678
  53. 012345678
  54. 012345678
  55. 012345678
  56. 012345678
  57. </file>
  58. </client>
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <strip>
  62. ^User-Agent:.*
  63. </strip>
  64. <protocol>
  65. GET /1040 HTTP/1.1
  66. Range: bytes=100-
  67. Host: %HOSTIP:%HTTPPORT
  68. Accept: */*
  69. </protocol>
  70. </verify>
  71. </testcase>