Add -L option to make curl follow redirection