test387 1.3 KB

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