cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: help! with 'deflate' content-encoding

From: Michael Wallner <mike_at_iworks.at>
Date: Mon, 21 Aug 2006 13:17:56 +0200

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
Received on 2006-08-21