class procedure download(from_url: string; to_filename: string; success: tproc = 0; error: tproc = 0)