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