We are getting encoded response with HTTP/1.0 protocol with Transfer-Encoding: chunked header added to the response.
We have below properties set in MP http.properties -
HTTPClient.supports.http10=false
HTTPClient.supports.http11=true
API Management is delivering response in encoded format which is not compatible for the customer client systems.We need the response to be in decoded format for HTTP/1.0 calls.
Add the property "supports.http10" to true at the target endpoint level to get the response in decoded format for all http 1.0 protocol request.
Add the supports.http10" to true at the target endpoint level,
<TargetEndpoint name="default"> <HTTPTargetConnection> <URL>http://mocktarget.apigee.net</URL> <Properties> <Property name="supports.http10">true</Property> <Property name="supports.http11”>false</Property> </Properties> </HTTPTargetConnection> </TargetEndpoint>
supports.http10 - If this is true and the client sends a 1.0 request, the target is also sent a 1.0 request. Otherwise 1.1 request is sent to target.
supports.http11 - If this is true and the client sends a 1.1 request, the target is also sent a 1.1 request, otherwise 1.0 request is sent to target.