public function exec() {
		if ($response = curl_exec($this->_ch)) {
			$header_size = $this->getinfo(CURLINFO_HEADER_SIZE);
			return array(
				'http_status_code' => $this->getinfo(CURLINFO_HTTP_CODE),
				'body' => substr($response, $header_size),
				'headers' => self::headers_to_array(substr($response, 0, $header_size))
			);
		} else {
			return false;
		}
	}
public function exec() {
		if ($response = curl_exec($this->_ch)) {
			$header_size = $this->getinfo(CURLINFO_HEADER_SIZE);
			return array(
				'http_status_code' => $this->getinfo(CURLINFO_HTTP_CODE),
				'body' => substr($response, $header_size),
				'headers' => self::headers_to_array(substr($response, 0, $header_size))
			);
		} else {
			return false;
		}
	}
public function exec ( ) { if ( $ response = curl_exec ( $ this -> _ch ) ) { $ header_size = $ this -> getinfo ( CURLINFO_HEADER_SIZE ) ; return array ( 'http_status_code' => $ this -> getinfo ( CURLINFO_HTTP_CODE ) , 'body' => substr ( $ response , $ header_size ) , 'headers' => self :: headers_to_array ( substr ( $ response , 0 , $ header_size ) ) ) ; } else { return false ; } }
This function should be called after initializing a cURL session and all the options for the session are set
@see http://php.net/manual/en/function.curl-exec.php Official PHP documentation for curl_exec()
@return boolean|mixed     Returns **TRUE** on success or **FALSE** on failiure. However, if the **CURLOPT_RETURNTANSFER** option is set, it will return the result on success, **FALSE** on failiure
This function should be called after initializing a cURL session and all the options for the session are set