#23702 [Com]: Please add "Accept-encoding: gzip"/"--compressed" option to CURL functions

From: Date: Sat, 07 Jun 2003 18:45:29 +0000
Subject: #23702 [Com]: Please add "Accept-encoding: gzip"/"--compressed" option to CURL functions
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354335@lists.php.net to get a copy of this message
ID: 23702 Comment by: julian_bond at voidstar dot com Reported By: stephen at pierzchala dot com Status: Analyzed Bug Type: Documentation problem Operating System: RedHat 8.0 PHP Version: 4.3.2RC3 New Comment: As far as I can see this option is not working in Win32 4.3.2 curl_setopt ($ch, CURLOPT_ENCODING,"") and curl_setopt ($ch, CURLOPT_ENCODING,"gzip") don't throw errors, but they also don't generate the Accept-Encoding: header. At a guess php_curl.dll is being built without zlib support. Previous Comments: ------------------------------------------------------------------------ [2003-05-19 22:33:08] stephen at pierzchala dot com Thanks for this...I know it is a documentation issue and I know it accepts a string value...but how do you activate this feature? I am using cURL 7.10.5 Thanks ------------------------------------------------------------------------ [2003-05-19 17:08:06] sniper@php.net Better make this documentation problem, couple of other options are also not documented. ------------------------------------------------------------------------ [2003-05-19 17:06:54] sniper@php.net It's already there: CURLOPT_ENCODING ------------------------------------------------------------------------ [2003-05-19 12:48:17] stephen at pierzchala dot com With the release of cURL 7.10.5, the ability to add the "--compressed" option to the command line gives people the ability to request compressed content if the server offers the option. Will this feature be added to the curl_setopt() family of functions? Thanks, Stephen Pierzchala ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23702&edit=1

« previous php.doc (#969354335) next »