Added -L option to cURL to follow redirects.