Payload is empty when making HTTP POST request with HttpConnector

I am trying to make a HTTP request with Camunda’s HTTP Connector, but payload is not sent. When I am using OkHttp framework for the same request, payload is delivered. What could be the issue in case of HTTP Connector?

The method’s I am using are following:

  public void postExampleWithHttpConnector() {
	  HttpConnector http = Connectors.getConnector(HttpConnector.ID);

	  HttpResponse response = http.createRequest()

public void postExampleWithOkHttpClient() {
	OkHttpClient client = new OkHttpClient();

	MediaType mediaType = MediaType.parse("application/json");
	RequestBody body = RequestBody.create(mediaType, "{\"jsonrpc\":\"2.0\",\"method\":\"changeDetail\"}");
	Request request = new Request.Builder()
	  .addHeader("content-type", "application/json")

	try {
	Response response = client.newCall(request).execute();
	} catch (Exception exception) {


the body sent by the Camunda Connect code is not empty. But the service you use does not record the body. I assume this is caused by the fact that the Camunda Connect request uses the Transfer-Encoding: chunked. This means the body is transferred as chunks and the content length is not set in the request header. Probably your test service only records bodies with a known content length.