test256 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. Resume
  8. FAILURE
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.0 200 Mooo
  15. Date: Mon, 13 Nov 2000 13:41:09 GMT
  16. Server: myown/1.0
  17. Connection: close
  18. todelooooo lalalala yada yada, we know nothing about ranges ;-)
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP resume request over proxy with auth without server supporting it
  28. </name>
  29. <command option="no-output">
  30. -x http://%HOSTIP:%HTTPPORT http://%HOSTIP:%HTTPPORT/want/256 -C - --no-include -o log/fewl256.txt -U daniel:stenberg
  31. </command>
  32. <file name="log/fewl256.txt">
  33. This text is here to simulate a partly downloaded file to resume
  34. download on.
  35. </file>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <errorcode>
  40. 33
  41. </errorcode>
  42. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. GET http://%HOSTIP:%HTTPPORT/want/256 HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Proxy-Authorization: Basic ZGFuaWVsOnN0ZW5iZXJn
  49. Range: bytes=78-
  50. Accept: */*
  51. Proxy-Connection: Keep-Alive
  52. </protocol>
  53. # the download target file must remain untouched
  54. <file name="log/fewl256.txt">
  55. This text is here to simulate a partly downloaded file to resume
  56. download on.
  57. </file>
  58. </verify>
  59. </testcase>