Added -L flag to curl to allow following redirections.