function: function curl_get($url, $params) { return curl_http($url, $params, 'GET'); } function curl_post($url, $params) { return curl_http($url, $params, 'POST'); } function curl_http($url, $params, $method = 'GET', $header = array(), $multi = false…