Dear All,
I can download a web pages HTML WITH THIS
function TForm1.SynapseDownload(URL: string): string;
var
HTTPGetResult: Boolean;
HTTPSender: THTTPSend;
S: string;
begin
Result := '';
HTTPSender := THTTPSend.Create;
HTTPSender.Timeout:=10000;
HTTPGetResult := HTTPSender.HTTPMethod('GET', URL);
SetLength(S, HTTPSender.Document.Size);
HTTPSender.Document.Read(S[1], Length(S));
Result:=S;
HTTPSender.Free;
end;
I have two questions
1. How can I tell the web server what browser I am (user agent)? For example "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0"
2. Can I fool the web server into thinking I followed a link on one of it's pages?
Thanks in advance.