Jump to content

Recommended Posts

Posted

I am using IdHTTPServer to receive an external data, it is working correctly, but it is displaying the data in a memo and this data does not show any memo, if you click on any memo and press enter the loading or data correctly, try an update on the memo , but it didn't work ... is there anything you can do?

did it this way in the CommandGet of idhttpserver

 

             Stream := ARequestInfo.PostStream;
             if assigned(Stream) then
                begin
                  Stream.Position := 0;
                  post := ReadStringFromStream(Stream);
                  jsonObj := TJSONObject.ParseJSONValue(TEncoding.ASCII.GetBytes(post),0) as TJSONObject;

                  mLog.Lines.Add(DateTimeToStr(now));
                  mLog.Lines.Add(DateTimeToStr(now)+' Conectado ?' + jsonObj.GetValue('conectado').Value );

                end;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...