Use curl to download files