Added support of HTTPS by using CURL lib.