You post the serialized Avro message as a byte array (or other protocols like bas64 form fields or whatever the server expects). Text mode might not be the most efficient protocol to use.
Greetings Bernd -- http://bernd.eckenfels.net ________________________________ Von: amruta dale <amruta.dale...@gmail.com> Gesendet: Monday, April 6, 2020 12:14:22 PM An: httpclient-users@hc.apache.org <httpclient-users@hc.apache.org> Betreff: How to post Kafka Avro records with httpclient Hi Team, I have written my own Producer interceptor in Java for Kafka Producer. During intercepting I am trying to push avro message (record.value()) to one of the API via httpclient post method. I can send the simple messages to api however somehow for avro message I am unable to do so. Like we use stringEntity for simple text messages ,what canwe use for Avro messages. Regards, Amruta