generate a download url