Add -L to curl to follow redirects
Add -L to curl