> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Rainer von Saleski > Sent: Monday, July 02, 2007 6:12 PM > To: [email protected] > Subject: Cookies > > I'm doing just fine using HTTP.Get (Delphi 7) to fetch the web data I > need ... except that I cannot figure out how to set up the cookies that > the site I'm contacting needs to log me in. > > Indy stores its cookies in its own place ... but where is that? If I > knew, I could just copy in Firefox's cookies for that site. > > If I use TWebBrowser to let the user carry out a login, the cookies do > not end up in Indy's world ... and I'm not logged in for HTTP.Get. > > The site's login page is sufficiently complicated, I cannot figure out > what URL to send to simply do the login. Is there a way to "sniff" the > traffic between a browser (any browser) and the internet? > > Answers to any of these avenues will probably solve my problem! > > Thanks, > Rainer
Hello there! Indy has its own cookie manager and you should use that: TIdCookieManager (it's on the Indy Misc page); Once you hook it up to the HTTP component you've got nothing else to do, it just works. As for copying the cookie from Firefox... it might work, it might not work. It depends on how the cookie is constructed and how it is validated. It just might be easier to do the login from Delphi + Indy (this might also be more portable) - but you'd need a bit of HTML knowledge to do this! Not much knowledge (I did it once and I can't say I know HTML or JavaScript). -- Cosmin Prund _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

