src/PrestashopWebServiceLibrary.php
protected function executeCurl($url, array $options = array())
    {
        $session = curl_init($url);

        if (count($options)) {
            curl_setopt_array($session, $options);
        }

        $response = curl_exec($session);

        $error = false;
        $info = curl_getinfo($session);
        if ($response === false) {
            $error = curl_error($session);
        }

        curl_close($session);

        return array($response, $info, $error);
    }
protected function executeCurl($url, array $options = array())
    {
        $session = curl_init($url);

        if (count($options)) {
            curl_setopt_array($session, $options);
        }

        $response = curl_exec($session);

        $error = false;
        $info = curl_getinfo($session);
        if ($response === false) {
            $error = curl_error($session);
        }

        curl_close($session);

        return array($response, $info, $error);
    }
protected function executeCurl ( $ url , array $ options = array ( ) ) { $ session = curl_init ( $ url ) ; if ( count ( $ options ) ) { curl_setopt_array ( $ session , $ options ) ; } $ response = curl_exec ( $ session ) ; $ error = false ; $ info = curl_getinfo ( $ session ) ; if ( $ response === false ) { $ error = curl_error ( $ session ) ; } curl_close ( $ session ) ; return array ( $ response , $ info , $ error ) ; }
Executes the CURL request to PrestaShop WebService.
@param string $url Resource name
@param mixed $options CURL parameters (sent to curl_setopt_array)
@return array response, info
Executes the CURL request to PrestaShop WebService .