test99 899 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Resume
  7. Largefile
  8. FAILURE
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 404 Nah
  16. Date: Thu, 09 Nov 2010 14:49:00 GMT
  17. Connection: close
  18. Content-Length: 13
  19. Funny-head: yesyes
  20. 0123456789123
  21. </data>
  22. <datacheck>
  23. HTTP/1.1 404 Nah
  24. Date: Thu, 09 Nov 2010 14:49:00 GMT
  25. Connection: close
  26. Content-Length: 13
  27. Funny-head: yesyes
  28. </datacheck>
  29. </reply>
  30. #
  31. # Client-side
  32. <client>
  33. <features>
  34. large_file
  35. </features>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. HTTP GET with large-file resume point and failed resume
  41. </name>
  42. <command>
  43. http://%HOSTIP:%HTTPPORT/99 -C 9999999999
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. # 33 is CURLE_RANGE_ERROR
  50. <errorcode>
  51. 33
  52. </errorcode>
  53. <strip>
  54. ^User-Agent:.*
  55. </strip>
  56. <protocol>
  57. GET /99 HTTP/1.1
  58. Range: bytes=9999999999-
  59. Host: %HOSTIP:%HTTPPORT
  60. Accept: */*
  61. </protocol>
  62. </verify>
  63. </testcase>