test266 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. chunked Transfer-Encoding
  7. DELAY
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 funky chunky!
  15. Server: fakeit/0.9 fakeitbad/1.0
  16. Transfer-Encoding: chunked
  17. Trailer: chunky-trailer
  18. Connection: mooo
  19. 40
  20. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  21. 30
  22. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  23. 21;heresatest=moooo
  24. cccccccccccccccccccccccccccccccc
  25. 0
  26. chunky-trailer: header data
  27. </data>
  28. <datacheck>
  29. HTTP/1.1 200 funky chunky!
  30. Server: fakeit/0.9 fakeitbad/1.0
  31. Transfer-Encoding: chunked
  32. Trailer: chunky-trailer
  33. Connection: mooo
  34. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
  35. chunky-trailer: header data
  36. </datacheck>
  37. <servercmd>
  38. writedelay: 10
  39. </servercmd>
  40. </reply>
  41. #
  42. # Client-side
  43. <client>
  44. <server>
  45. http
  46. </server>
  47. <name>
  48. HTTP GET with chunked Transfer-Encoding and chunked trailer
  49. </name>
  50. <command>
  51. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
  52. </command>
  53. </client>
  54. #
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <protocol>
  58. GET /%TESTNUMBER HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. User-Agent: curl/%VERSION
  61. Accept: */*
  62. </protocol>
  63. <file name="%LOGDIR/heads%TESTNUMBER">
  64. HTTP/1.1 200 funky chunky!
  65. Server: fakeit/0.9 fakeitbad/1.0
  66. Transfer-Encoding: chunked
  67. Trailer: chunky-trailer
  68. Connection: mooo
  69. chunky-trailer: header data
  70. </file>
  71. </verify>
  72. </testcase>