test12 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: Mon, 13 Nov 2000 13:41:09 GMT
  14. Server: Apache/1.3.11 (Unix) PHP/3.0.14
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 101
  19. Content-Range: bytes 100-200/3527
  20. Connection: close
  21. Content-Type: text/html
  22. ..partial data returned from the
  23. server as a result of setting an explicit byte range
  24. in the request
  25. </data>
  26. </reply>
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. </server>
  32. <name>
  33. HTTP range support
  34. </name>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r 100-200
  37. </command>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET /want/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Range: bytes=100-200
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>