PHP Class Hypernode\Curl

Show file Open project: Hypernode/hypernode-magerun

Public Properties

Property Type Description
$curl
$curl_error
$curl_error_code
$curl_error_message
$error
$error_code
$error_message
$http_error
$http_error_message
$http_status_code
$request_headers
$response
$response_headers

Public Methods

Method Description
__construct ( )
__destruct ( )
_exec ( )
close ( )
delete ( $url, $data = [] )
get ( $url, $data = [] )
patch ( $url, $data = [] )
post ( $url, $data = [] )
put ( $url, $data = [] )
reset ( )
setBasicAuthentication ( $username, $password )
setCookie ( $key, $value )
setHeader ( $key, $value )
setOpt ( $option, $value )
setReferrer ( $referrer )
setUserAgent ( $user_agent )
verbose ( $on = true )

Protected Methods

Method Description
setHttpAuth ( $httpauth )

Private Methods

Method Description
init ( )

Method Details

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

_exec() public method

public _exec ( )

close() public method

public close ( )

delete() public method

public delete ( $url, $data = [] )

get() public method

public get ( $url, $data = [] )

patch() public method

public patch ( $url, $data = [] )

post() public method

public post ( $url, $data = [] )

put() public method

public put ( $url, $data = [] )

reset() public method

public reset ( )

setBasicAuthentication() public method

public setBasicAuthentication ( $username, $password )

setCookie() public method

public setCookie ( $key, $value )

setHeader() public method

public setHeader ( $key, $value )

setHttpAuth() protected method

protected setHttpAuth ( $httpauth )

setOpt() public method

public setOpt ( $option, $value )

setReferrer() public method

public setReferrer ( $referrer )

setUserAgent() public method

public setUserAgent ( $user_agent )

verbose() public method

public verbose ( $on = true )

Property Details

$curl public property

public $curl

$curl_error public property

public $curl_error

$curl_error_code public property

public $curl_error_code

$curl_error_message public property

public $curl_error_message

$error public property

public $error

$error_code public property

public $error_code

$error_message public property

public $error_message

$http_error public property

public $http_error

$http_error_message public property

public $http_error_message

$http_status_code public property

public $http_status_code

$request_headers public property

public $request_headers

$response public property

public $response

$response_headers public property

public $response_headers