Menu

#327 compression encoding problem

closed-invalid
http (206)
5
2013-06-21
2003-07-11
Julian Bond
No

See also http://bugs.php.net/bug.php?id=23702

curl 7.10.2 (i386-redhat-linux-gnu) libcurl/7.10.2
OpenSSL/0.9.6b zlib/1.1.4

Been trying to get compression from inside php 4.3.2
both on linux and Win32 without success.
CURLOPT_ENCODING is being ignored and the
accept-encoding header is never sent.

So I tried
curl --compressed http://www.voidstar.com/temp/accept.php
on linux and got
curl: (23) Error while processing content unencoding.
unknown compression method

That server has php set to zlib.output_compression=1
and when the page is called from a browser with
Accept-Encoding:gzip,deflate it returns
Content-Encoding: gzip
with no problems

So it looks to me like somewhere, between curl, php and
my installations, encoding support is broken. Any ideas?

Discussion

  • Julian Bond

    Julian Bond - 2003-07-14

    Logged In: YES
    user_id=820604

    Another data point. Upgraded to 7.10.5 (doh!) and
    --compressed worked. But php 4.3.2 and 4.3.3rc1 both still
    fail. It also looks like 4.3.2 and 4.3.3rc1 on MS Win
    doesn't link to the zlib library.

    So I don't think this is a curl or librcurl problem, but a
    php problem.

     
  • Daniel Stenberg

    Daniel Stenberg - 2003-07-15

    Logged In: YES
    user_id=1110

    Not a libcurl bug!

     
  • Daniel Stenberg

    Daniel Stenberg - 2003-07-15
    • status: open --> closed-invalid
     
MongoDB Logo MongoDB