2
0

test189 1005 B

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