HttpResponseText (TJson)
<source lang="delphi">property httpResponseText:string;</source>
Cette propriété retourne la dernière valeur de retour d'une exécution http.
Exemples:
<source lang="delphi">
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;
</source>
Voir aussi: