added support for https protocol and multisearch endpoint