Download a url (with a password)

Better to use Downloads which is a standard library. Something like

using Downloads: download
file = download(url)

You can create a ~/.netrc file with a username and password. You can also put the username and password in the URL.

3 Likes