[fpc-pascal] Access site from app with login and password using http

Osvaldo Filho arquivostcf at gmail.com
Thu Aug 29 13:58:15 CEST 2013


Could you send a piece of code as an example?


2013/8/29 Michael Schnell <mschnell at lumino.de>

> 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?
>>
>
> I used Synapse to access the web site of an embedded controller.
>
> Using FireFox with a "developer" plugin, I analyzed the data exchange
> between browser and server. (In fact here a cookie was involved, supposedly
> to allow the server to do an automatic log out after some idle time.)
>
> After that I recreated the dialog in pascal code with Synapse HTTP
> functions.
>
> I suppose the details of the necessary actions to a successful login might
> very between different sites.
>
> -Michael
>
> ______________________________**_________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<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/604c4370/attachment.html>


More information about the fpc-pascal mailing list