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
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.
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
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