Property | Type | Description | |
---|---|---|---|
$debug | |||
$mimeTypes | path to save | ||
$save_to_file | |||
$timeout | |||
$url |
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 ) |
Method | Description | |
---|---|---|
buildPostString ( ) | ||
getMimeType ( $fn ) | ||
is_multidim_array ( $myarray ) | Starts curl and sets headers and returns the data in a string | |
setHeaders ( $type = '' ) |
public download ( $save_to_file, $post_data = false ) |
public setHttpHeaders ( $headers ) |