php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28168 gzip support broken?
Submitted: 2004-04-26 20:44 UTC Modified: 2004-04-29 15:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dac514 at sympatico dot ca Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4.3.6 OS: Widndows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dac514 at sympatico dot ca
New email:
PHP Version: OS:

 

 [2004-04-26 20:44 UTC] dac514 at sympatico dot ca
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-29 15:27 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is likely to be a bug in the cURL library. The PHP 
interface to the library had no changes that would cause 
this bug. 
 [2004-04-30 16:43 UTC] daniel at haxx dot se
I'm not aware of any such libcurl bugs, but the URL in this report doesn't work and I cannot repeat this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 22:01:28 2024 UTC