makes curl follow redirects