robinhodemorais Posted July 15, 2020 Posted July 15, 2020 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; Record_2020_07_15_11_29_51_32.mp4 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.