test1042 1.2 KB

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