test1058 806 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Content-Range
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 206 Partial Content
  13. Date: Thu, 31 Jul 2008 13:41:09 GMT
  14. Accept-Ranges: bytes
  15. Content-Length: 101
  16. Content-Range: bytes 100-200/201
  17. Connection: close
  18. Content-Type: text/html
  19. ..partial data returned from the
  20. server as a result of setting an explicit byte range
  21. in the request
  22. </data>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. <name>
  30. HTTP range relative to end of file
  31. </name>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/want/1058 -r -101
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. GET /want/1058 HTTP/1.1
  43. Range: bytes=-101
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. </protocol>
  47. </verify>
  48. </testcase>