test256 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/%TESTNUMBER -C - --no-include -o %LOGDIR/fewl%TESTNUMBER.txt -U daniel:stenberg
  31. </command>
  32. <file name="%LOGDIR/fewl%TESTNUMBER.txt">
  33. This text is here to simulate a partly downloaded file to resume
  34. download on.
  35. </file>
  36. <features>
  37. proxy
  38. </features>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <errorcode>
  43. 33
  44. </errorcode>
  45. <protocol>
  46. GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Proxy-Authorization: Basic ZGFuaWVsOnN0ZW5iZXJn
  49. Range: bytes=78-
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. Proxy-Connection: Keep-Alive
  53. </protocol>
  54. # the download target file must remain untouched
  55. <file name="%LOGDIR/fewl%TESTNUMBER.txt">
  56. This text is here to simulate a partly downloaded file to resume
  57. download on.
  58. </file>
  59. </verify>
  60. </testcase>