Re: [fpc-pascal] Ethernet Relays

2020-05-25 Thread James Richters
Thank you Michael, I would have really overcomplicated that, glad I asked James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt Sent: Monday, May 25, 2020 6:54 AM To: ja...@productionautomation.net; FPC-Pascal users discussions Subject: Re: [fpc-pascal] Ethernet R

Re: [fpc-pascal] Ethernet Relays

2020-05-25 Thread Michael Van Canneyt
On Mon, 25 May 2020, James Richters wrote: Thanks! Is there some convenient way to get the HTML into a Tstringlist? Yes. Simpleget is overloaded to accept a tstrings: L:=TstringList.Create; try TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/01',L); finally L.Free; end; Michael.

Re: [fpc-pascal] Ethernet Relays

2020-05-25 Thread James Richters
Thanks! Is there some convenient way to get the HTML into a Tstringlist? James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt Sent: Monday, May 25, 2020 4:47 AM To: ja...@productionautomation.net; FPC-Pascal users discussions Cc: 'Ched' Subject: Re: [fpc-pasca

Re: [fpc-pascal] Ethernet Relays

2020-05-25 Thread Michael Van Canneyt
On Sun, 24 May 2020, James Richters wrote: I got this working, thanks for the advice Ched, Here's my test program: uses fphttpclient; Begin TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/01'); TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/03'); TFPHTTPCLIENT.SIMPLEGET('http://10.10.0