test1273 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <testcase>
  2. # also verified by 1156 in libcurl API terms
  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. <killserver>
  41. http
  42. </killserver>
  43. <name>
  44. -f and resume transfer of an entirely-downloaded file
  45. </name>
  46. <command>
  47. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - -f
  48. </command>
  49. <file name="%LOGDIR/curl%TESTNUMBER.out">
  50. 012345678
  51. 012345678
  52. 012345678
  53. 012345678
  54. 012345678
  55. 012345678
  56. 012345678
  57. 012345678
  58. 012345678
  59. 012345678
  60. </file>
  61. </client>
  62. # Verify data after the test has been "shot"
  63. <verify>
  64. <protocol>
  65. GET /%TESTNUMBER HTTP/1.1
  66. Host: %HOSTIP:%HTTPPORT
  67. Range: bytes=100-
  68. User-Agent: curl/%VERSION
  69. Accept: */*
  70. </protocol>
  71. </verify>
  72. </testcase>