+ Start a Discussion
Vijay RautVijay Raut 

http Callout - Bad Request (400)

Hi,

 

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.

 

V.R.

cheenathcheenath

Not enough information to guess what is going wrong.

 

Are you doing a POST request?

 

 

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