test189 1.1 KB

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