Cfhttp gzip post


if im using cfhttp to post data to and endpoint that supports gzip compressed payload. im setting the header to


how should i compress the content of the post ?


I would use mod_deflate if you are using apache and you want to reduce the size of the data in transit to to the supported end users browser.


apache doesn’t come into play as this is sending a http request not receiving one

there is a compression option, but i think it’s only used for request headers

I think what you are are after is something like a compress option for cfhttparam?


Yes exactly. I’m wanting to send the body content gzipped, to reduce network overhead. Where a server can receive it if it supports gzip compression. Specifically, I’m wanting to do this with an aws api gateway as I have read it supports it.