Adding auth_update to old downloadpackage code, not using JHttp