Forum Discussion
Shuki_griba_304
Feb 20, 2017Nimbostratus
Gzip - Http request
Hello
I have a client app that send JSON requests to the server pool.
The requests are compressed with GZIP and I'm sending a Content-Encoding: gzip header.
The ASM is not uncompressing the GZIP ...
Walter_Kacynski
May 11, 2018Cirrostratus
I posted this over in: https://devcentral.f5.com/questions/uncompress-gzip-request-with-json
There is an iRule DECOMPRESS::enable request that will accomplish this goal. I opened a support case and the engineer gave me a solution. I tested it with an LTM policy or here is the iRule:
when HTTP_REQUEST {
log local0. "**HTTP Request Received**"
if { [HTTP::header "Content-Encoding"] contains "gzip"} {
DECOMPRESS::enable request
log local0. "Content-Encoding is GZIP, DECOMPRESS"
}
}
I verified that content is uncompressed.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects