protected function init($url, $postString, $headers)
    {
        $this->headers = $headers;

        $this->curl = curl_init($url);

        if (empty($this->cookieJar)) {
            $this->loadCookies();
        }

        curl_setopt_array($this->curl, $this->makeHttpOptions($postString));

        return $this;
    }
protected function init($url, $postString, $headers)
    {
        $this->headers = $headers;

        $this->curl = curl_init($url);

        if (empty($this->cookieJar)) {
            $this->loadCookies();
        }

        curl_setopt_array($this->curl, $this->makeHttpOptions($postString));

        return $this;
    }
protected function init ( $ url , $ postString , $ headers ) { $ this -> headers = $ headers ; $ this -> curl = curl_init ( $ url ) ; if ( empty ( $ this -> cookieJar ) ) { $ this -> loadCookies ( ) ; } curl_setopt_array ( $ this -> curl , $ this -> makeHttpOptions ( $ postString ) ) ; return $ this ; }
Initializes curl resource with options.

@param string $url
@param string $postString
@param array $headers
@return $this
Initializes curl resource with options .