Use --location option to support redirect