added https capability

wrapped the existing http capability in a custom socket