How can HTTP callouts be compressed and troubleshot?
|Knowledge Article Number||000004053|
I would like to know how to send compressed HTTP callouts and how to debug compression related issues.
Requests can be compressed to save bandwidth and to reduce the size of the payload of the packets sent over the Internet. To enable callouts compression, use the following code:
HttpRequest req = new HttpRequest();
When a request is sent in compressed format ensure that the following fields are present in the headers:
To check whether your post request is properly formed,
1) Go to postbin.defensio.com/ and click Create a new PostBin