update https and user agent