Skip to content
Advertisement

Unable to read gzip encoded in using HttpClientInterface in Symfony Project

I’m unable to read gzip encoded response in a Symfony projet. Here is my service :

JavaScript

Here is my response :

JavaScript

Thank you in advance

Advertisement

Answer

See https://github.com/symfony/symfony/issues/34238#issuecomment-550206946 – remove Accept-Encoding: gzip from the array of headers if you want to receive a unzipped response, or unzip the response on your own

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement