src/Http/Curl.php
protected static function prepareRequest($url, $parameters = [], $headers = [])
    {
        $request = curl_init();

        if ($query = http_build_query($parameters)) {
            $url .= '?'.$query;
        }

        curl_setopt($request, CURLOPT_URL, $url);
        curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($request, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($request, CURLINFO_HEADER_OUT, true);
        curl_setopt($request, CURLOPT_SSL_VERIFYPEER, true);

        return $request;
    }
protected static function prepareRequest($url, $parameters = [], $headers = [])
    {
        $request = curl_init();

        if ($query = http_build_query($parameters)) {
            $url .= '?'.$query;
        }

        curl_setopt($request, CURLOPT_URL, $url);
        curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($request, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($request, CURLINFO_HEADER_OUT, true);
        curl_setopt($request, CURLOPT_SSL_VERIFYPEER, true);

        return $request;
    }
protected static function prepareRequest ( $ url , $ parameters = [ ] , $ headers = [ ] ) { $ request = curl_init ( ) ; if ( $ query = http_build_query ( $ parameters ) ) { $ url .= '?' . $ query ; } curl_setopt ( $ request , CURLOPT_URL , $ url ) ; curl_setopt ( $ request , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ request , CURLOPT_HTTPHEADER , $ headers ) ; curl_setopt ( $ request , CURLINFO_HEADER_OUT , true ) ; curl_setopt ( $ request , CURLOPT_SSL_VERIFYPEER , true ) ; return $ request ; }
Prepares a request using curl.

@param  string $url [description]
@param  array $parameters [description]
@param  array $headers [description]
@return resource
Prepares a request using curl .