Fixed the case if host lacks HTTPS support.
Added arbitrary keyword arguments to exec method.