Link to home
Start Free TrialLog in
Avatar of alpires
alpiresFlag for Brazil

asked on

Capture cookies with delphi

Hi Experts,

Exist some way to capture cookies from IE, Firefox, Google Chrome using a Delphi XE2 program ?

Thanks
Alpires
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A way I can think of is somehow tracing visited urls and then check each url for cookies using WinInet function InternetGetCookie function (Windows)
You can also try using WinINet fucntion FindFirstUrlCacheEntry function (Windows) to get a list of all cookies...
WinInet API : Get list all cookies
Please note: Thommy's suggestion is for IE only. For each browser you must do separately.
As sinisav said you have to use different approach for any browser.
Just in addition take a look here to see how it was solved in C#
http://www.codeproject.com/Articles/330142/Cookie-Quest-A-Quest-to-Read-Cookies-from-Four-Pop (contains some note that point to a rlibby ex-ex solution)