test164 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. # Server-side
  3. # This particular response is an exact excerpt from an actual Apache
  4. # server when asked for a 0-10,12-15 range (except gt/lt changed to {}
  5. # to avoid XML escaping problems).
  6. <reply>
  7. <data>
  8. HTTP/1.1 206 Partial Content swsclose
  9. Date: Sat, 24 Apr 2004 09:24:49 GMT
  10. Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0
  11. Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT
  12. ETag: "53814a-ec5-405ff3f2"
  13. Accept-Ranges: bytes
  14. Content-Length: 187
  15. Content-Type: multipart/byteranges; boundary=408a326132c
  16. --408a326132c
  17. Content-type: text/html
  18. Content-range: bytes 0-10/3781
  19. {html}
  20. {hea
  21. --408a326132c
  22. Content-type: text/html
  23. Content-range: bytes 12-15/3781
  24. }
  25. {t
  26. --408a326132c--
  27. </data>
  28. </reply>
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP range with multiple ranges
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/want/164 -r 0-10,12-15
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. GET /want/164 HTTP/1.1
  48. Range: bytes=0-10,12-15
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. </protocol>
  52. </verify>
  53. </testcase>