Delphi-Quellcode:
Content : TStringList;
...
result := HTTP.Post(
url, Content);
Da liegt der Fehler: es muss für
XML oder JSON hier keine Stringlist sondern ein Stream übergeben werden.
Siehe hier:
https://blog.habarisoft.com/2015/03/...-6-https-post/
"you must not use a TStringList for the POST body. That version of TIdHTTP.Post() formats the data according to the application/x-www-form-urlencoded media type, which is not appropriate for JSON and will corrupt it."
Delphi-Quellcode:
RequestBody: TStream;
ResponseBody:
string;
...
RequestBody:= TStringStream.Create(Content.Text, TEncoding.UTF8);
ResponseBody := HTTP.Post(
url, RequestBody);