test1156 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Content-Range
  7. Resume
  8. Range
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK
  15. Content-Type: text/html
  16. Content-Length: 5
  17. body
  18. </data>
  19. <data1 nocheck="yes">
  20. HTTP/1.1 200 OK
  21. Content-Type: text/html
  22. Content-Length: 5
  23. Content-Range: bytes 3/7
  24. body
  25. </data1>
  26. <data2 nocheck="yes">
  27. HTTP/1.1 416 Requested Range Not Satisfiable
  28. Content-Type: text/html
  29. Content-Length: 5
  30. body
  31. </data2>
  32. <data3 nocheck="yes">
  33. HTTP/1.1 416 Requested Range Not Satisfiable
  34. Content-Type: text/html
  35. Content-Length: 5
  36. Content-Range: bytes */2
  37. body
  38. </data3>
  39. </reply>
  40. # Client-side
  41. <client>
  42. <server>
  43. http
  44. </server>
  45. <tool>
  46. lib%TESTNUMBER
  47. </tool>
  48. <name>
  49. HTTP resume/range fail range-error content-range combinations
  50. </name>
  51. <command>
  52. http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER
  53. </command>
  54. </client>
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <stdout>
  58. 0
  59. </stdout>
  60. </verify>
  61. </testcase>