Placing agent id in headers when sending message to server.