| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Should curl be unzipping a gzipped response?
From: Graham Charters <gcharters_at_googlemail.com>
Date: Mon, 5 Feb 2007 17:04:28 +0000
Hi,
I tried the following question on the PHP list, but got no response.
I'm using the PHP curl extension to prototype RSS client support in a
Could someone please tell me whether or not curl should be unzipping
Any help would be greatly appreciated. Many thanks.
More details follow (a little PHP specific)...
My request headers include the following:
Accept-Encoding: gzip
And the response headers include:
Content-Encoding: gzip
The relevant (I think :-) ) parts of my request code are:
curl_setopt($handle, CURLOPT_HEADER, false);
I can unzip the response using the following and the result looks fine:
$unzipped = gzinflate(substr($result,10));
FYI: I've tried this with curl 7.15.5 and 7.16.1 (built with Open SSL
Regards,
Graham.
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info