diff --git a/src/Instasent/Abstracts/InstasentClient.php b/src/Instasent/Abstracts/InstasentClient.php index 572fe96..5311616 100644 --- a/src/Instasent/Abstracts/InstasentClient.php +++ b/src/Instasent/Abstracts/InstasentClient.php @@ -58,6 +58,7 @@ protected function execRequest($url, $httpMethod, $data) curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); if ($httpMethod == 'POST') {