test189 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: /189
  13. Content-Length: 2
  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: /189
  25. Content-Length: 2
  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/189 -C 50 -L
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET /189 HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. Range: bytes=50-
  52. User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
  53. Accept: */*
  54. GET /189 HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. Range: bytes=50-
  57. User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.2 libidn/0.5.2
  58. Accept: */*
  59. </protocol>
  60. # 33 is CURLE_RANGE_ERROR
  61. <errorcode>
  62. 33
  63. </errorcode>
  64. </verify>
  65. </testcase>