test38 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/%TESTNUMBER -C - --no-include -o log/fewl%TESTNUMBER.txt
  30. </command>
  31. <file name="log/fewl%TESTNUMBER.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. <protocol>
  42. GET /want/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Range: bytes=78-
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. # the download target file must remain untouched
  49. <file name="log/fewl%TESTNUMBER.txt">
  50. This text is here to simulate a partly downloaded file to resume
  51. download on.
  52. </file>
  53. </verify>
  54. </testcase>