a Function to follow location if CURLOPT_FOLLOWLOCATION is not activated