test1042 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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/%TESTNUMBER -C 200
  58. </command>
  59. <file name="log/curl%TESTNUMBER.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. <protocol>
  78. GET /%TESTNUMBER HTTP/1.1
  79. Host: %HOSTIP:%HTTPPORT
  80. Range: bytes=200-
  81. User-Agent: curl/%VERSION
  82. Accept: */*
  83. </protocol>
  84. </verify>
  85. </testcase>