GZIP and CFHTTP “Connection Failure”

When you enable gzip, or deflate, compression on your server one side effect is your existing cfhttp requests will show “Connection Failure” even though you get an http 200 response. This is because Coldfusion doesn’t know how to decompress the response. Get get around this you need to tell the server to send an uncompressed response. Use this tag to do so.

<cfhttpparam type="header" name="Accept-Encoding" Value="no-compression">

Leave a Reply

Your email address will not be published. Required fields are marked *