I am trying to login to
this website (
view-source:http://www.tigerfan.com/login) using my application. I am using the
httpRequest and
process functions from the
simpleinternet unit to acheive this. This is my code:
uses simpleinternet;
procedure TForm1.Button1Click(Sender: TObject);
begin
httpRequest(process('http://www.tigerfan.com/login', 'form(pageLogin, {"login": "aaaExample1", "password": "Example1"})'));
end;
The account details above are real and working, if anyone wants to try it.
This code is not working and I get no errors or exceptions, just this warning (which I'm ignoring):
unit1.pas(36,3) Warning: Symbol "httpRequest" is deprecated: "Use destination.retrieve() instead."
I know that the `httpRequest` function works because the following test code has output:
edit1.text := (httpRequest('http://www.google.com'));
Is it possible that the syntax of the parameters is wrong? If you have any suggestions as to why this code isn't working, all are very much appreciated.