test188 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: /188
  16. Content-Length: 2
  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: /188
  29. Content-Length: 2
  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/188 -C 50 -L
  47. </command>
  48. </client>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strip>
  52. ^User-Agent:.*
  53. </strip>
  54. <protocol>
  55. GET /188 HTTP/1.1
  56. Range: bytes=50-
  57. User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. GET /188 HTTP/1.1
  61. Range: bytes=50-
  62. 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
  63. Host: %HOSTIP:%HTTPPORT
  64. Accept: */*
  65. </protocol>
  66. </verify>
  67. </testcase>