test36 849 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. chunked Transfer-Encoding
  7. FAILURE
  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. 2
  19. a
  20. ILLEGAL
  21. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  22. </data>
  23. <datacheck>
  24. HTTP/1.1 200 funky chunky!
  25. Server: fakeit/0.9 fakeitbad/1.0
  26. Transfer-Encoding: chunked
  27. Connection: mooo
  28. a
  29. </datacheck>
  30. </reply>
  31. #
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. HTTP GET with bad chunked Transfer-Encoding
  39. </name>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <errorcode>
  48. 56
  49. </errorcode>
  50. <protocol>
  51. GET /%TESTNUMBER HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. </protocol>
  56. </verify>
  57. </testcase>