making curl follow redirects