update curl to follow redirects