make sure the correct protocol is used when posting messages to prevent issues when the protocol is https instead of http