test12 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/12 -r 100-200
  37. </command>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. GET /want/12 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Range: bytes=100-200
  48. Accept: */*
  49. </protocol>
  50. </verify>
  51. </testcase>