proxylib.php
protected function _makeCurlRequest($url)
    {
        $curl_handle = curl_init($url);

        curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, $this->_requestMethod);
        if($this->_requestBody)
        {
            curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $this->_requestBody);
        }

        curl_setopt($curl_handle, CURLOPT_HEADER, true);
        curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->_requestUserAgent);
        curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl_handle, CURLOPT_COOKIE, $this->_buildProxyRequestCookieString());
        curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $this->_generateProxyRequestHeaders());

        $response = curl_exec($curl_handle);

        if (false === $response) {
            var_dump(curl_error($curl_handle));
        } else {
            return $response;
        }
    }
protected function _makeCurlRequest($url)
    {
        $curl_handle = curl_init($url);

        curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, $this->_requestMethod);
        if($this->_requestBody)
        {
            curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $this->_requestBody);
        }

        curl_setopt($curl_handle, CURLOPT_HEADER, true);
        curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->_requestUserAgent);
        curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl_handle, CURLOPT_COOKIE, $this->_buildProxyRequestCookieString());
        curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $this->_generateProxyRequestHeaders());

        $response = curl_exec($curl_handle);

        if (false === $response) {
            var_dump(curl_error($curl_handle));
        } else {
            return $response;
        }
    }
protected function _makeCurlRequest ( $ url ) { $ curl_handle = curl_init ( $ url ) ; curl_setopt ( $ curl_handle , CURLOPT_CUSTOMREQUEST , $ this -> _requestMethod ) ; if ( $ this -> _requestBody ) { curl_setopt ( $ curl_handle , CURLOPT_POSTFIELDS , $ this -> _requestBody ) ; } curl_setopt ( $ curl_handle , CURLOPT_HEADER , true ) ; curl_setopt ( $ curl_handle , CURLOPT_USERAGENT , $ this -> _requestUserAgent ) ; curl_setopt ( $ curl_handle , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ curl_handle , CURLOPT_COOKIE , $ this -> _buildProxyRequestCookieString ( ) ) ; curl_setopt ( $ curl_handle , CURLOPT_HTTPHEADER , $ this -> _generateProxyRequestHeaders ( ) ) ; $ response = curl_exec ( $ curl_handle ) ; if ( false === $ response ) { var_dump ( curl_error ( $ curl_handle ) ) ; } else { return $ response ; } }
Given the object's current settings, make a request to the given url
using the cURL library
@param string $url The url to make the request to
@return string The full HTTP response
Given the object s current settings make a request to the given url using the cURL library