test1043 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Resume
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 206 Partial Content
  13. Date: Mon, 13 Nov 2007 13:41:09 GMT
  14. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  15. Accept-Ranges: bytes
  16. Content-Length: 60
  17. Content-Range: bytes 40-99/100
  18. 012345678
  19. 012345678
  20. 012345678
  21. 012345678
  22. 012345678
  23. 012345678
  24. </data>
  25. # The file data that exists at the start of the test must be included in
  26. # the verification.
  27. <datacheck>
  28. 012345678
  29. 012345678
  30. 012345678
  31. 012345678
  32. HTTP/1.1 206 Partial Content
  33. Date: Mon, 13 Nov 2007 13:41:09 GMT
  34. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  35. Accept-Ranges: bytes
  36. Content-Length: 60
  37. Content-Range: bytes 40-99/100
  38. 012345678
  39. 012345678
  40. 012345678
  41. 012345678
  42. 012345678
  43. 012345678
  44. </datacheck>
  45. </reply>
  46. # Client-side
  47. <client>
  48. <server>
  49. http
  50. </server>
  51. <name>
  52. HTTP GET with resume from end of file
  53. </name>
  54. <command>
  55. http://%HOSTIP:%HTTPPORT/1043 -C -
  56. </command>
  57. <file name="log/curl1043.out">
  58. 012345678
  59. 012345678
  60. 012345678
  61. 012345678
  62. </file>
  63. </client>
  64. # Verify data after the test has been "shot"
  65. <verify>
  66. <strip>
  67. ^User-Agent:.*
  68. </strip>
  69. <protocol>
  70. GET /1043 HTTP/1.1
  71. Range: bytes=40-
  72. Host: %HOSTIP:%HTTPPORT
  73. Accept: */*
  74. </protocol>
  75. </verify>
  76. </testcase>