My Internet Tools (http://www.benibela.de/sources_en.html#internettools) are made for that.

For example:

uses simpleinternet;

var i: IXQValue;
begin
for i in process(httpRequest(process('http://www.example.org/the/page/with/the/login/form', 'form(/form, {"username": "'+username+'", "password": "'+password+'"})')),
                   '//tr/td[2]') do
    writeln(i.toString);
end.

will fill out the login form on the first page, then load the second page, and print the values of the second column of all table rows


On 08/28/2013 10:07 PM, Osvaldo Filho wrote:
Is there any example to access information on web site that requires authentication with login and password in form using http from a Lazarus application?


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to