getRemoteFile에서 연결 설정을 수정할 수 있게 수정

getRemoteResource 자체는 연결 설정이 가능하나 getRemoteFile은 불가능하기에 수정
This commit is contained in:
YJSoft 2014-10-25 21:40:02 +09:00
parent aab1c8f1a1
commit eb388a9eb0

View file

@ -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;
}