|
|
|
@ -118,7 +118,9 @@ class Download { |
|
|
|
$fp = fopen(DOWNLOADINGDIR.DIRECTORY_SEPARATOR.$this->filename, 'w+'); |
|
|
|
$ch = curl_init($this->premURL); |
|
|
|
curl_setopt($ch, CURLOPT_FILE, $fp); |
|
|
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
|
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
|
|
|
curl_setopt ($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); |
|
|
|
curl_exec($ch); |
|
|
|
$retour = curl_getinfo($ch); |
|
|
|
|