Is Curl GZIP support broken?

From: Date: Thu, 29 Apr 2004 17:18:18 +0000
Subject: Is Curl GZIP support broken?
Groups: php.general 
Request: Send a blank email to php-general+get-185146@lists.php.net to get a copy of this message
The following code used to work until i upgraded to 4.3.6 Code: --------------- // Get RSS feed $c = curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1'); curl_setopt($c, CURLOPT_ENCODING, 'gzip'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar); // *** This next line is the problem! *** $data = curl_exec($c); curl_close($c); Expected result: ---------------- $data should be text. xml_parse($xml, $data) should be able to handle it. Actual result: -------------- $data is compressed gzip binaray data. I can't use it in this format. What changed?

« previous php.general (#185146) next »