Just tell cURL to decode the response automatically whenever it’s gzipped
curl_setopt($ch,CURLOPT_ENCODING, '');
More Related Contents:
- How to get file_get_contents() to work with HTTPS?
- curl POST format for CURLOPT_POSTFIELDS
- How do I make an asynchronous GET request in PHP?
- PHP cURL custom headers
- Setting Curl’s Timeout in PHP
- Keeping session alive with Curl and PHP
- Can’t connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?
- Best way to manage long-running php script?
- Copy Image from Remote Server Over HTTP
- Manually parse raw multipart/form-data data with PHP
- How to get response using cURL in PHP
- Posting multidimensional array with PHP and CURL
- Get Element by ClassName with DOMdocument() Method
- SFTP from within PHP
- Correct way to set Bearer token with cURL
- Run composer with a PHP script in browser
- How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?
- How to switch from POST to GET in PHP CURL
- Post to a Facebook user’s wall with cURL PHP
- Send XML data to webservice using php curl
- PHP unable to load php_curl.dll extension
- Is making asynchronous HTTP requests possible with PHP?
- Protocol https not supported or disabled in libcurl
- Can anyone give me an example for PHP’s CURLFile class?
- PHP Multiple Curl Requests
- upload multiple files to php server using curl command line
- Post data and retrieve the response using PHP Curl?
- cURL — cookies and sessions
- download a file from ftp using curl and php
- PHP cURL: how to set body to binary data?