Skip to content

Commit

Permalink
Merge pull request #17 from eliysha/Curl_Follow_Redirect
Browse files Browse the repository at this point in the history
Add Curl follow redirect
  • Loading branch information
slaanesh authored Nov 30, 2016
2 parents 08a46b6 + 938b155 commit adc24a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php/fotolia-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ private function _download($download_url, $output_file = NULL, $http_auth_requir

curl_setopt($ch, CURLOPT_FILE, $output_fd);
curl_setopt($ch, CURLOPT_USERPWD, $this->_getHttpAuth(TRUE, $http_auth_required));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

$response = curl_exec($ch);

Expand Down

0 comments on commit adc24a3

Please sign in to comment.