test418 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. gzip
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 swsclose OK
  13. Content-Length: 6
  14. Transfer-Encoding: gzip
  15. Transfer-Encoding: gzip
  16. Transfer-Encoding: gzip
  17. Transfer-Encoding: gzip
  18. Transfer-Encoding: gzip
  19. Transfer-Encoding: gzip
  20. Transfer-Encoding: gzip
  21. Transfer-Encoding: gzip
  22. Transfer-Encoding: gzip
  23. -foo-
  24. </data>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. </server>
  32. <features>
  33. libz
  34. </features>
  35. <name>
  36. Response with multiple Transfer-Encoding headers
  37. </name>
  38. <command>
  39. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -sS --tr-encoding
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol crlf="yes">
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Connection: TE
  51. TE: gzip
  52. </protocol>
  53. # CURLE_BAD_CONTENT_ENCODING is 61
  54. <errorcode>
  55. 61
  56. </errorcode>
  57. <stderr mode="text">
  58. curl: (61) Reject response due to more than 5 content encodings
  59. </stderr>
  60. </verify>
  61. </testcase>