Updated curl options to follow redirects.