HttpResponseText (TJson)
property httpResponseText:string;
Cette propriété retourne la dernière valeur de retour d'une exécution http.
Exemples:
var jsonQ,jsonR:TJson; rslt:Integer; AStr:string;
begin
jsonQ := Tjson.Create('{....}');
//
rslt := jsonQ.httpPost('myServiceProvider','/myapi/myressource',jsonR);
if rslt>500 then
begin
ShowMessage(Format('HTTP: %d %s',[jsonQ.httpResponseCode,jsonQ.httpResponseText]));
end;
end;
Voir aussi: