test1434 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/1434 -C 100
  57. </command>
  58. <file name="log/curl1434.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. <strip>
  74. ^User-Agent:.*
  75. </strip>
  76. <protocol>
  77. GET /1434 HTTP/1.1
  78. Host: %HOSTIP:%HTTPPORT
  79. Range: bytes=100-
  80. Accept: */*
  81. </protocol>
  82. </verify>
  83. </testcase>