Added support for both HTTP and SSH protocols.