ze\curl::fetch()
ze\curl::fetch($URL, $post = false, $options = [], $saveToFile = false)
Fetches the contents of a URL by CURL. A wrapper function to the curl_exec() PHP function.
$URL
The URL to fetch
$post
You may use POST by setting this variable. You can enter an array of $_POST variables you wish to set, or if you do not wish to actually set any post variables, just enter a value of true.
$options
An array of options => values to pass to CURL.
$saveToFile
If you enter the path to a file into this parameter, the result will be saved to a file.
The results of a call to curl_exec().