download file with method=“curl”