#23702 [Com]: Please add "Accept-encoding: gzip"/"--compressed" option to CURL functions
| From: | julian_bond at voidstar dot com | Date: | Fri, 11 Jul 2003 12:15:32 +0000 |
| Subject: | #23702 [Com]: Please add "Accept-encoding: gzip"/"--compressed" option to CURL functions | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355133@lists.php.net to get a copy of this message | ||
ID: 23702
Comment by: julian_bond at voidstar dot com
Reported By: stephen at pierzchala dot com
Status: Analyzed
Bug Type: Documentation problem
Operating System: RedHat 8.0
PHP Version: 4.3.2RC3
New Comment:
Just done some analysis on this in two setups. Both 4.3.2
1. Win32 using php_curl.dll libcurl/7.10.5 OpenSSL/0.9.7b
2. redhat 7.3, compiled with '--with-curl', libcurl/7.10.2
OpenSSL/0.9.6 zlib/1.1.4
In both cases, CURLOPT_ENCODING is being ignored. no matter what
parameter is added, the Accept-Encoding: header is never generated. If
gzip content is forced to be returned, curl doesn't decode it.
Whether the problem is with curl or php I'm not sure.
Previous Comments:
------------------------------------------------------------------------
[2003-06-07 13:45:28] julian_bond at voidstar dot com
As far as I can see this option is not working in Win32 4.3.2
curl_setopt ($ch, CURLOPT_ENCODING,"") and
curl_setopt ($ch, CURLOPT_ENCODING,"gzip") don't throw errors, but they
also don't generate the Accept-Encoding: header.
At a guess php_curl.dll is being built without zlib support.
------------------------------------------------------------------------
[2003-05-19 22:33:08] stephen at pierzchala dot com
Thanks for this...I know it is a documentation issue and I know it
accepts a string value...but how do you activate this feature?
I am using cURL 7.10.5
Thanks
------------------------------------------------------------------------
[2003-05-19 17:08:06] sniper@php.net
Better make this documentation problem, couple of other
options are also not documented.
------------------------------------------------------------------------
[2003-05-19 17:06:54] sniper@php.net
It's already there: CURLOPT_ENCODING
------------------------------------------------------------------------
[2003-05-19 12:48:17] stephen at pierzchala dot com
With the release of cURL 7.10.5, the ability to add the "--compressed"
option to the command line gives people the ability to request
compressed content if the server offers the option.
Will this feature be added to the curl_setopt() family of functions?
Thanks,
Stephen Pierzchala
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23702&edit=1