Add HTTPS support for http task