public function parseResponse($response)
    {
        // Parse the response and set the last response and headers.
        $info = curl_getinfo($this->ch);
        $this->__last_response_headers = substr(
            $response,
            0,
            $info['header_size']
        );
        $this->__last_response = substr($response, $info['header_size']);
    }
public function parseResponse($response)
    {
        // Parse the response and set the last response and headers.
        $info = curl_getinfo($this->ch);
        $this->__last_response_headers = substr(
            $response,
            0,
            $info['header_size']
        );
        $this->__last_response = substr($response, $info['header_size']);
    }
public function parseResponse ( $ response ) { // Parse the response and set the last response and headers. $ info = curl_getinfo ( $ this -> ch ) ; $ this -> __last_response_headers = substr ( $ response , 0 , $ info [ 'header_size' ] ) ; $ this -> __last_response = substr ( $ response , $ info [ 'header_size' ] ) ; }
Pareses the response from a successful request.

@param string $response
The response from the cURL request, including headers and body.
Pareses the response from a successful request .