test38 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Server-side
  2. <reply>
  3. <data nocheck=1>
  4. HTTP/1.0 200 Mooo
  5. Date: Mon, 13 Nov 2000 13:41:09 GMT
  6. Server: myown/1.0
  7. Connection: close
  8. todelooooo lalalala yada yada, we know nothing about ranges ;-)
  9. </data>
  10. </reply>
  11. # Client-side
  12. <client>
  13. <server>
  14. http
  15. </server>
  16. <name>
  17. HTTP resume request without server supporting it
  18. </name>
  19. <command option="no-output">
  20. http://%HOSTIP:%HOSTPORT/want/38 -C - -i -o log/fewl.txt
  21. </command>
  22. <file name="log/fewl.txt">
  23. This text is here to simulate a partly downloaded file to resume
  24. download on.
  25. </file>
  26. </client>
  27. # Verify data after the test has been "shot"
  28. <verify>
  29. <errorcode>
  30. 33
  31. </errorcode>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. GET /want/38 HTTP/1.1
  37. Range: bytes=78-
  38. Host: 127.0.0.1:8999
  39. Pragma: no-cache
  40. Accept: */*
  41. </protocol>
  42. # the download target file must remain untouched
  43. <file name="log/fewl.txt">
  44. This text is here to simulate a partly downloaded file to resume
  45. download on.
  46. </file>
  47. </verify>