public function executeRequestHandle($curlHandle)
    {
        curl_setopt($curlHandle, CURLOPT_VERBOSE, true);
        $verbose = fopen('php://temp', 'w+');
        curl_setopt($curlHandle, CURLOPT_STDERR, $verbose);

        @list($headers, $response) = explode("\r\n\r\n", curl_exec($curlHandle), 2);

        $error = curl_error($curlHandle);
        $errorNumber = curl_errno($curlHandle);
        $httpStatus = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);

        curl_close($curlHandle);

        $this->handleCurlError($error, $errorNumber, $verbose);

        return [
            'response' => $response,
            'httpStatus' => $httpStatus,
            'headers' => $headers
        ];
    }
public function executeRequestHandle($curlHandle)
    {
        curl_setopt($curlHandle, CURLOPT_VERBOSE, true);
        $verbose = fopen('php://temp', 'w+');
        curl_setopt($curlHandle, CURLOPT_STDERR, $verbose);

        @list($headers, $response) = explode("\r\n\r\n", curl_exec($curlHandle), 2);

        $error = curl_error($curlHandle);
        $errorNumber = curl_errno($curlHandle);
        $httpStatus = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);

        curl_close($curlHandle);

        $this->handleCurlError($error, $errorNumber, $verbose);

        return [
            'response' => $response,
            'httpStatus' => $httpStatus,
            'headers' => $headers
        ];
    }
public function executeRequestHandle ( $ curlHandle ) { curl_setopt ( $ curlHandle , CURLOPT_VERBOSE , true ) ; $ verbose = fopen ( 'php://temp' , 'w+' ) ; curl_setopt ( $ curlHandle , CURLOPT_STDERR , $ verbose ) ; @ list ( $ headers , $ response ) = explode ( "\r\n\r\n" , curl_exec ( $ curlHandle ) , 2 ) ; $ error = curl_error ( $ curlHandle ) ; $ errorNumber = curl_errno ( $ curlHandle ) ; $ httpStatus = curl_getinfo ( $ curlHandle , CURLINFO_HTTP_CODE ) ; curl_close ( $ curlHandle ) ; $ this -> handleCurlError ( $ error , $ errorNumber , $ verbose ) ; return [ 'response' => $ response , 'httpStatus' => $ httpStatus , 'headers' => $ headers ] ; }
Execute curl handle

@param resource $curlHandle

@throws TransportException

@return mixed
Execute curl handle