@BBasile
Thanks for the pointer but I can't understand that code. It reads (to me) as if it is intended to UPLOAD some data to a web-site, rather than DOWNLOAD the contents of a file already on a site.
Notwithstanding that, I did try to incorporate it as a procedure :
procedure CheckForNewURLs;
Var
NewURLs : TStringStream;
S : String;
begin
With TFPHttpClient.Create(Nil) do
try
NewURLs:=TStringStream.Create('');
FileFormPost('http://www.{domain+Filename}','PostFilenameParam',edtSourceFile.Text,NewURLs);
S:=NewURLs.DataString;
NewURLs.Destroy;
finally
Free;
end;
end;
...but this doesn't compile, throwing error
Identifier not found "edtSourceFile" - - which doesn't really surprise me since I haven't declared that variable anywhere and can't fathom what it's supposed to be or do; nor do I have any idea what 'PostFilenameParam' is for.
I have successfully written code to read the time-stamp from a local file (a pre-cursor to my second approach to the problem) but can't work out how to do the same for a file on the web-site. I've looked through all the components and attributes of a ThtmlDocument but can't see anything relating to the date.
I'd appreciate any advice on how to achieve this as well.