[fpc-pascal] Access site from app with login and password using http
Benito van der Zander
benito at benibela.de
Thu Aug 29 15:55:33 CEST 2013
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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130829/dbb41b3b/attachment.html>
More information about the fpc-pascal
mailing list