test1116 1.4 KB

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