2
0

test38 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <data nocheck="yes">
  13. HTTP/1.0 200 Mooo
  14. Date: Mon, 13 Nov 2000 13:41:09 GMT
  15. Server: myown/1.0
  16. Connection: close
  17. todelooooo lalalala yada yada, we know nothing about ranges ;-)
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP resume request without server supporting it
  27. </name>
  28. <command option="no-output">
  29. http://%HOSTIP:%HTTPPORT/want/38 -C - --no-include -o log/fewl.txt
  30. </command>
  31. <file name="log/fewl.txt">
  32. This text is here to simulate a partly downloaded file to resume
  33. download on.
  34. </file>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <errorcode>
  39. 33
  40. </errorcode>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. GET /want/38 HTTP/1.1
  46. Range: bytes=78-
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. </protocol>
  50. # the download target file must remain untouched
  51. <file name="log/fewl.txt">
  52. This text is here to simulate a partly downloaded file to resume
  53. download on.
  54. </file>
  55. </verify>
  56. </testcase>