Help with Curl GZIP problem?

From: Date: Sun, 02 May 2004 16:26:11 +0000
Subject: Help with Curl GZIP problem?
Groups: php.general 
Request: Send a blank email to php-general+get-185144@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 (#185144) next »