public function Compress(&$curl_headers, &$requestBody)
    {
        if (!function_exists('gzencode')) {
            return;
        }

        $requestBody = gzencode($requestBody);

        $curl_headers['content-encoding']='deflate';
        $curl_headers['content-length']=strlen($requestBody);
    }
public function Compress(&$curl_headers, &$requestBody)
    {
        if (!function_exists('gzencode')) {
            return;
        }

        $requestBody = gzencode($requestBody);

        $curl_headers['content-encoding']='deflate';
        $curl_headers['content-length']=strlen($requestBody);
    }
public function Compress ( & $ curl_headers , & $ requestBody ) { if ( ! function_exists ( 'gzencode' ) ) { return ; } $ requestBody = gzencode ( $ requestBody ) ; $ curl_headers [ 'content-encoding' ] = 'deflate' ; $ curl_headers [ 'content-length' ] = strlen ( $ requestBody ) ; }
Compresses the input byte array into stream.
@param curl_headers Curl headers, pre-compression
@param requestBody POST body, pre-compression
Compresses the input byte array into stream .