private function executeRequest(&$ch)
    {
        $result = curl_exec($ch);

        if (!curl_errno($ch)) {
            $info = curl_getinfo($ch);
            curl_close($ch);
            return new Response($info, $result);
        }

        $errno = curl_errno($ch);
        $error = curl_error($ch);

        curl_close($ch);

        throw new DripException($error, $errno);
    }
private function executeRequest(&$ch)
    {
        $result = curl_exec($ch);

        if (!curl_errno($ch)) {
            $info = curl_getinfo($ch);
            curl_close($ch);
            return new Response($info, $result);
        }

        $errno = curl_errno($ch);
        $error = curl_error($ch);

        curl_close($ch);

        throw new DripException($error, $errno);
    }
private function executeRequest ( & $ ch ) { $ result = curl_exec ( $ ch ) ; if ( ! curl_errno ( $ ch ) ) { $ info = curl_getinfo ( $ ch ) ; curl_close ( $ ch ) ; return new Response ( $ info , $ result ) ; } $ errno = curl_errno ( $ ch ) ; $ error = curl_error ( $ ch ) ; curl_close ( $ ch ) ; throw new DripException ( $ error , $ errno ) ; }
Execute and handle the request result

@param resource $ch Curl handle

@return Response
@throws DripException
Execute and handle the request result