ID: 28051 Updated by: [EMAIL PROTECTED] -Summary: No gzip accept-encoding for HTTP request Reported By: Olaf at XCC dot TMFWeb dot NL -Status: Open +Status: Suspended -Bug Type: HTTP related +Bug Type: Feature/Change Request Operating System: * PHP Version: 4.3.6 -Assigned To: +Assigned To: pollita New Comment:
This may be added in PHP 5.1. In the mean time you may be able to acheive this behavior using a combination of the header context parameter for the http:// wrapper and the zlib_filter found in PECL. This stop-gap solution will only work in PHP5 however. Previous Comments: ------------------------------------------------------------------------ [2004-04-19 03:12:35] Olaf at XCC dot TMFWeb dot NL Description: ------------ This code sends a HTTP request without gzip accept-encoding header, so the server can't send a gzip content encoded response. Reproduce code: --------------- <?php echo strlen(file_get_contents("http://php.net/")); ?> Expected result: ---------------- GET /s HTTP/1.0 Content-Encoding: gzip Host: php.net HTTP/1.0 200 OK Content-Type: text/plain Actual result: -------------- GET /s HTTP/1.0 Host: php.net HTTP/1.0 200 OK Content-Type: text/plain ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28051&edit=1