|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-29 15:27 UTC] iliaa@php.net
[2004-04-30 16:43 UTC] daniel at haxx dot se
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Description: ------------ The following code used to work until i upgraded to 4.3.6 Reproduce 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?