#28051 [Opn->Sus]: gzip accept-encoding for HTTP request

From: Date: Mon, 19 Apr 2004 04:35:48 +0000
Subject: #28051 [Opn->Sus]: gzip accept-encoding for HTTP request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58346@lists.php.net to get a copy of this message
ID: 28051 Updated by: pollita@php.net -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

« previous php.bugs (#58346) next »