Use curl for downloading files and do auth.