Made cURL follow redirects