test1434 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Resume
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. # Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
  12. <data>
  13. HTTP/1.1 200 OK
  14. Connection: close
  15. Content-Length: 100
  16. Content-Type: text/plain
  17. 012345678
  18. 012345678
  19. 012345678
  20. 012345678
  21. 012345678
  22. 012345678
  23. 012345678
  24. 012345678
  25. 012345678
  26. 012345678
  27. </data>
  28. # The file data that exists at the start of the test must be included in
  29. # the verification.
  30. <datacheck>
  31. 012345678
  32. 012345678
  33. 012345678
  34. 012345678
  35. 012345678
  36. 012345678
  37. 012345678
  38. 012345678
  39. 012345678
  40. 012345678
  41. HTTP/1.1 200 OK
  42. Connection: close
  43. Content-Length: 100
  44. Content-Type: text/plain
  45. </datacheck>
  46. </reply>
  47. # Client-side
  48. <client>
  49. <server>
  50. http
  51. </server>
  52. <name>
  53. HTTP GET resume at exactly the existing file size is fine
  54. </name>
  55. <command>
  56. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 100
  57. </command>
  58. <file name="log/curl%TESTNUMBER.out">
  59. 012345678
  60. 012345678
  61. 012345678
  62. 012345678
  63. 012345678
  64. 012345678
  65. 012345678
  66. 012345678
  67. 012345678
  68. 012345678
  69. </file>
  70. </client>
  71. # Verify data after the test has been "shot"
  72. <verify>
  73. <protocol>
  74. GET /%TESTNUMBER HTTP/1.1
  75. Host: %HOSTIP:%HTTPPORT
  76. Range: bytes=100-
  77. User-Agent: curl/%VERSION
  78. Accept: */*
  79. </protocol>
  80. </verify>
  81. </testcase>