test188 1020 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Content-Range
  7. Resume
  8. followlocation
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 301 OK swsbounce
  15. Location: /%TESTNUMBER
  16. Content-Length: 3
  17. OK
  18. </data>
  19. <data1>
  20. HTTP/1.1 200 OK
  21. Connection: close
  22. Content-Length: 15
  23. Content-Range: bytes 50-
  24. Actual content
  25. </data1>
  26. <datacheck>
  27. HTTP/1.1 301 OK swsbounce
  28. Location: /%TESTNUMBER
  29. Content-Length: 3
  30. HTTP/1.1 200 OK
  31. Connection: close
  32. Content-Length: 15
  33. Content-Range: bytes 50-
  34. Actual content
  35. </datacheck>
  36. </reply>
  37. # Client-side
  38. <client>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP GET with resume and redirect
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 50 -L
  47. </command>
  48. </client>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <protocol>
  52. GET /%TESTNUMBER HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Range: bytes=50-
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. GET /%TESTNUMBER HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Range: bytes=50-
  60. User-Agent: curl/%VERSION
  61. Accept: */*
  62. </protocol>
  63. </verify>
  64. </testcase>