curl-and-php
RE: help! with 'deflate' content-encoding
Date: Mon, 21 Aug 2006 14:14:45 +0200
Amazing!
Thanks a lot, everything now works perfectly.
It's a PITA that the PHP manual does NOT mention it, and in fact the man page for gzdeflate explicitly mentions RFC 1591, which is also mentioned in RFC 2616, leading many people (well, me at least) astray...
Bye
Gaetano
BTW: I have seen that RFC 2616 also mentions "compress" encoding. Any idea to which php function it translates to?
> -----Original Message-----
> From: curl-and-php-bounces_at_cool.haxx.se
> [mailto:curl-and-php-bounces_at_cool.haxx.se]On Behalf Of Michael Wallner
> Sent: Monday, August 21, 2006 1:18 PM
> To: curl-and-php_at_cool.haxx.se
> Subject: Re: help! with 'deflate' content-encoding
>
>
> Gaetano Giunta wrote:
>
> > Any help?
>
> This is a common misunderstanding.
> The answer to your question basically is that "PHP deflate"
> != "HTTP deflate".
>
> The deflate encoding used in HTTP is actually zlib encoded.
>
> This is what PHP functions return:
> gzencode() == gzip
> gzcompress() == zlib (aka. HTTP deflate)
> gzdeflate() == *raw* deflate encoding
>
> Regards,
> --
> Michael
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-08-21