Not able to use the library if OpenSearchServer has login credentials

The parameters login and key has been added to the URL while making the request.