delphi - Automatically Decode GZIP In TRESTResponse? -
It is not possible to assign a compressor or interrupt TRESTClient.
If I set TRESTRequest.Accept encoding to 'gsip, deflate', then I get a GPIP encoded response from a server that supports gzip.
However, in TIdHTTP I think it will automatically decode it. In TRESTResponse.Content it is still gzip encoded and I have to manually decode it with TIdCompressorZlib.DecompressGZipStream (). Is there a way to decode TRESTResponse automatically?
If you set the asset, then it is the default TCustomRESTRequest " gzip, deflate Accept "Value
Comments
Post a Comment