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:

Yet another data point. I upgraded curl to 7.10.5 on linux (doh!). curl
--compressed now works. But CURLOPT_ENCODING still doesn't.

The curl docs say that curl needs to be compiled with zlib to support
compression. It looks like MS Win 4.3.2 and 4.3.3rc1 don't do this,
given that curl_info() reports "libcurl/7.10.5 OpenSSL/0.9.7b" while
linux reports "libcurl/7.10.2 OpenSSL/0.9.6 zlib/1.1.4".

This bug is currently category "documentation problem". I believe it
should be treated as a code problem. I'd really like to see it fixed in
4.3.3


Previous Comments:
------------------------------------------------------------------------

[2003-07-11 07:15:32] julian_bond at voidstar dot com

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.

------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

Better make this documentation problem, couple of other
options are also not documented.


------------------------------------------------------------------------

[2003-05-19 17:06:54] [EMAIL PROTECTED]

It's already there: CURLOPT_ENCODING


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/23702

-- 
Edit this bug report at http://bugs.php.net/?id=23702&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to