Pass --location to curl so that we follow redirects