test1040 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <testcase>
  2. # Similar to test92
  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. <name>
  41. HTTP GET with resume from end of entirely-downloaded file
  42. </name>
  43. <command>
  44. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
  45. </command>
  46. <file name="%LOGDIR/curl%TESTNUMBER.out">
  47. 012345678
  48. 012345678
  49. 012345678
  50. 012345678
  51. 012345678
  52. 012345678
  53. 012345678
  54. 012345678
  55. 012345678
  56. 012345678
  57. </file>
  58. </client>
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <protocol>
  62. GET /%TESTNUMBER HTTP/1.1
  63. Host: %HOSTIP:%HTTPPORT
  64. Range: bytes=100-
  65. User-Agent: curl/%VERSION
  66. Accept: */*
  67. </protocol>
  68. </verify>
  69. </testcase>