Ver originalif ($this->follow) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); } else { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); }