Adapting the data sent to the protocol defined with the server