test164 1.2 KB

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