test33 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. Resume
  7. Content-Range
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 OK swsclose
  14. </data>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. http
  20. </server>
  21. <name>
  22. HTTP PUT with resume
  23. </name>
  24. <file name="log/test33.txt">
  25. 012345678
  26. 012345678
  27. 012345678
  28. 012345678
  29. 012345678
  30. 012345678
  31. 012345678
  32. 012345678
  33. 012345678
  34. 012345678
  35. </file>
  36. <command>
  37. http://%HOSTIP:%HTTPPORT/33 -Tlog/test33.txt -C 50
  38. </command>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. PUT /33 HTTP/1.1
  47. Content-Range: bytes 50-99/100
  48. User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. Content-Length: 50
  52. Expect: 100-continue
  53. 012345678
  54. 012345678
  55. 012345678
  56. 012345678
  57. 012345678
  58. </protocol>
  59. </verify>
  60. </testcase>