[Lazarus] questioning ARequest: TFPHTTPConnectionRequest :)

duilio foschi octopushole at gmail.com
Sun Feb 26 20:05:39 CET 2023


my simple BE server uses this function to handle all inbound calls:

procedure TTestHTTPServer.HandleRequest(
   var ARequest: TFPHTTPConnectionRequest;
   var AResponse: TFPHTTPConnectionResponse
);

When the call is a POST, I want to read the json payload inside ARequest.

I expected to find a property like Body:string inside
TFPHTTPConnectionRequest, but I could not find it.

How do I get the the json payload which is inside ARequest?

Thank you

Peppe


More information about the lazarus mailing list