use curl with progress bar for download