test1116 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. </datacheck>
  34. </reply>
  35. #
  36. # Client-side
  37. <client>
  38. <server>
  39. http
  40. </server>
  41. <name>
  42. HTTP GET with chunked trailer without Trailer:
  43. </name>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/1116 -D log/heads1116
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strip>
  52. ^User-Agent:.*
  53. </strip>
  54. <protocol>
  55. GET /1116 HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. Accept: */*
  58. </protocol>
  59. <file name="log/heads1116">
  60. HTTP/1.1 200 funky chunky!
  61. Server: fakeit/0.9 fakeitbad/1.0
  62. Transfer-Encoding: chunked
  63. Connection: mooo
  64. chunky-trailer: header data
  65. another-header: yes
  66. </file>
  67. </verify>
  68. </testcase>