Skip to content

Commit adc24a3

Browse files
authored
Merge pull request Fotolia#17 from eliysha/Curl_Follow_Redirect
Add Curl follow redirect
2 parents 08a46b6 + 938b155 commit adc24a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

php/fotolia-api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ private function _download($download_url, $output_file = NULL, $http_auth_requir
356356

357357
curl_setopt($ch, CURLOPT_FILE, $output_fd);
358358
curl_setopt($ch, CURLOPT_USERPWD, $this->_getHttpAuth(TRUE, $http_auth_required));
359+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
359360

360361
$response = curl_exec($ch);
361362

0 commit comments

Comments
 (0)