On Tue, 8 Sep 2020, James Richters via fpc-pascal wrote:
I added ssockets now I can compile it.
I have this working with the ssockets unit added:
Try
S:=TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/30000/15');
except
On E: ESocketError do
Writeln('Could not connect to server'); end;
But when I try the version with the timeout, I always get the error.
What is the proper way to get the page into a variable with the timeout method?
I tried S:= C.Get('http://10.10.01.01/30000/15'); But I'm not sure that's the
right way to do it, but even without the S:= I always get the EsocketError
What timeout did you use ? 10 ms is probably too short.
Michael.
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal