function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vijay RautVijay Raut 

http Callout - Bad Request (400)



We have one application which calls external web services in apex code. It is working fine and i am getting response back.


Now we are looking for implementing compression using "setCompressed()" method / gzip compression. We have set compression using this method and now i am getting "BAD REQUEST - 400" response from web service. Any thoughts?


Thanks in advance.




Not enough information to guess what is going wrong.


Are you doing a POST request?



I would guess the problem is that the server does not support compressed requests.