Fixed curl to follow redirects.