diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php index 968233923..09a9e28ab 100644 --- a/classes/file/FileHandler.class.php +++ b/classes/file/FileHandler.class.php @@ -615,9 +615,9 @@ class FileHandler * @param string[] $headers Headers key vaule array. * @return bool TRUE: success, FALSE: failed */ - function getRemoteFile($url, $target_filename, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array()) + function getRemoteFile($url, $target_filename, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array(), $request_config = array()) { - if(!($body = self::getRemoteResource($url, $body, $timeout, $method, $content_type, $headers))) + if(!($body = self::getRemoteResource($url, $body, $timeout, $method, $content_type, $headers,$cookies,$post_data,$request_config))) { return FALSE; }