added support for HTTP BASIC AUTH when sending messages to a partner