PHP Class Microweber\Utils\Adapters\Http\Curl

Show file Open project: microweber/microweber

Public Properties

Property Type Description
$debug
$mimeTypes path to save
$save_to_file
$timeout
$url

Public Methods

Method Description
__construct ( )
download ( $save_to_file, $post_data = false ) Set the headers and process curl via a GET
execute ( )
get ( )
post ( $data = false ) Set the headers and process curl via a POST
setHttpHeaders ( $headers ) Headers can be modified depending on what you need cURL to accomplish
setUrl ( $url )

Private Methods

Method Description
buildPostString ( )
getMimeType ( $fn )
is_multidim_array ( $myarray ) Starts curl and sets headers and returns the data in a string
setHeaders ( $type = '' )

Method Details

__construct() public method

public __construct ( )

download() public method

Set the headers and process curl via a GET
public download ( $save_to_file, $post_data = false )

execute() public method

public execute ( )

get() public method

public get ( )

post() public method

Set the headers and process curl via a POST
public post ( $data = false )

setHttpHeaders() public method

Headers can be modified depending on what you need cURL to accomplish
public setHttpHeaders ( $headers )

setUrl() public method

public setUrl ( $url )

Property Details

$debug public property

public $debug

$mimeTypes public property

path to save
public $mimeTypes

$save_to_file public property

public $save_to_file

$timeout public property

public $timeout

$url public property

public $url