Forum Discussion
Avshalom_114801
Nimbostratus
Feb 20, 2013uncompress gzip REQUEST with JSON
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.
F5 doesn't seem to uncompress the resp...
Walter_Kacynski
Cirrostratus
May 11, 2018There 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
