Hi, i have a client calling my server posting 2 parameters inside POST data (not querystring), and i need to read it. Now here how my code works:
procedure TForm6.RtcDataProvider1DataReceived(Sender: TRtcConnection);
var
vsFileName : string; //(1)
viFileSize : integer;
readString : string;
begin
readString := (sender as TRtcConnection).read();
with TRtcDataServer(Sender) do //(2)
if Request.Complete then
begin
write('Test1: ' + Request.Info['param1'] + ', Test2: ' + Request.Params.Value['param1'] + ', readString: ' + readString);
end;
end;
it's just an edited example! I can read the full POST data inside readString, but i don't have an object to call the single parameters, something like "myObject['param1']".
i tried to read the "param1" parameter in some ways but i always got an empty string, those in the code are just 2 of my tries.
Does RealThinClient provide some already working object to encapsulate and read POST data?