Add support of HTTPS protocol

Add the support of HTTPS and if HTTPS did not retrieve html content try with HTTP.