response = given()
header("Date", dtime).
header("Authorization", auth_header3).
header("Content-MD5", md5).
header("Content-Type", content_type).
body(new File("regcust")).
when().
post("https://"+ipaddress+":"+port+"/v1/clients").
then().
statusCode(201).
extract().
response();
Здесь «regcust» - это файл json. Если я отправляю запрос с телом json, я получаю исключение, например «java.lang.UnsupportedOperationException: внутренняя ошибка: не удается закодировать regcust в JSON».