Added support for https to httpUtil