test1116 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. Connection: mooo
  18. 40
  19. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  20. 30
  21. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  22. 21;heresatest=moooo
  23. cccccccccccccccccccccccccccccccc
  24. 0
  25. %if !hyper
  26. chunky-trailer: header data
  27. another-header: yes
  28. %endif
  29. </data>
  30. <datacheck>
  31. HTTP/1.1 200 funky chunky!
  32. Server: fakeit/0.9 fakeitbad/1.0
  33. Transfer-Encoding: chunked
  34. Connection: mooo
  35. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
  36. %if !hyper
  37. chunky-trailer: header data
  38. another-header: yes
  39. %endif
  40. </datacheck>
  41. <servercmd>
  42. writedelay: 10
  43. </servercmd>
  44. </reply>
  45. #
  46. # Client-side
  47. <client>
  48. <server>
  49. http
  50. </server>
  51. <name>
  52. HTTP GET with chunked trailer without Trailer:
  53. </name>
  54. <command>
  55. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
  56. </command>
  57. </client>
  58. #
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <protocol>
  62. GET /%TESTNUMBER HTTP/1.1
  63. Host: %HOSTIP:%HTTPPORT
  64. User-Agent: curl/%VERSION
  65. Accept: */*
  66. </protocol>
  67. <file name="%LOGDIR/heads%TESTNUMBER">
  68. HTTP/1.1 200 funky chunky!
  69. Server: fakeit/0.9 fakeitbad/1.0
  70. Transfer-Encoding: chunked
  71. Connection: mooo
  72. %if !hyper
  73. chunky-trailer: header data
  74. another-header: yes
  75. %endif
  76. </file>
  77. </verify>
  78. </testcase>