test164 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/%TESTNUMBER -r 0-10,12-15
  45. </command>
  46. </client>
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <protocol>
  50. GET /want/%TESTNUMBER HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Range: bytes=0-10,12-15
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. </protocol>
  56. </verify>
  57. </testcase>