Log into a website and maintain session using Indy in Delphi
here is the schematics/solution (with example):
- get the page
- save the cookies
- set cookies (manualy upto indy 9 at least)
- do the login
- get and update the cookies
- from now on, always set cookies (point 3) just before geting/posting/heading/etc from that site
solution (compile in Delphi 7; indy 9 - there are some issues in delphi 10 not yet fixed)
Source Code