For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

David_Haupt_130's avatar
David_Haupt_130
Icon for Nimbostratus rankNimbostratus
Jul 09, 2014

Custom HTTP health monitor POST GZIP and decompress response

Hi

 

I have a http pool with members which consumes only GZIP POST data. And they produce gzipped data. I fear I have to go to an external monitor in order to make a nice monitor for this case, or is it possible to do in the LTM GUI? (v10.1)

 

Here is the curl request (ip addresses and actual API has been altered to protect the innocent :)) I want to have check the status 10000 and based on that determine that my pool member is feeling dandy.

 

curl -v -X POST -H "Accept-Encoding: gzip" -H "Content-Encoding: gzip" -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent:" -H "Host: thehost" --compressed --data-binary @healtcheckdata.gz 192.168.0.10:8080

 

About to connect() to 192.168.0.10 port 8080 (0)

 

Trying 192.168.0.10... connected

 

Connected to 192.168.0.10 (192.168.0.10) port 8080 (0)

 

POST / HTTP/1.1

 

Accept-Encoding: gzip

 

Content-Encoding: gzip

 

Accept: application/json

 

Content-Type: application/json

 

Host: thehost

 

Content-Length: 137

 

HTTP/1.1 200 OK

 

Connection: close

 

Content-Encoding: gzip

 

Content-Length: 53

 

Content-Type: application/json

 

Closing connection 0

 

[{"id":1,"status":10000}]

 

1 Reply

  • There's no option in the built-in HTTP monitors to compress the requests. I believe your best bet is going to be an external cURL monitor.