CURLOPT_FOLLOWLOCATION : Çalıştırdığınız oturumda gelen header içinde “Location:adres” gibi bir yönlendirme varsa bu yönlendirmeye uyup uymuyacağı bu değişken ile belirlenir.


Alıntı
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);