test1058 815 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/%TESTNUMBER -r -101
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. GET /want/%TESTNUMBER HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Range: bytes=-101
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. </protocol>
  45. </verify>
  46. </testcase>