[COOK-4165] Replace curl with remote_file with cookie header