Hello,
I just disovered that after reading the content of a response it seems the content empties. After a simple get of an url to get an image I tried to read the data received. Accessing it the first time works fine, but the second read throws an exception. You can reproduce the behaviour with this code:
var
FBytes : TArray<Byte>;
begin
FResponse := FClient.Send(FRequest);
FBytes := Copy(FResponse.ContentAsBytes); // first read
FBytes := Copy(FResponse.ContentAsBytes); // second read - throws exception
Why is this? Is this a bug or by design?
Regards
Harald