Article View: borland.public.cppbuilder.internet.socket
Article #1696Re: TIdHTTP and Cookie (newby question)
From: Remy Lebeau (TeamB)
Date: Wed, 22 Nov 2006 19:36
Date: Wed, 22 Nov 2006 19:36
30 lines
2058 bytes
2058 bytes
"Richard Kavanagh" <dd.foldhill@google-ignore-mail.com> wrote in message news:45649763@newsgroups.borland.com... > This has given me a start. However there is still no CookieManager. Yes, there is. > IdHTTP has a property that is a pointer to something called > CookieManager of type TIdCookieManager That is the propety to use. > however its value is NULL. You did not listen to what I said earlier. TIdHTTP only creates its own CookieManager when none is assigned by you prior to sending a request. So to fill in your own cookies beforehand, you will have to provide your own CookieManager object to that property. > So how do I instantiate and initialise one. Then same way you do with any other component. TIdCookieManager is a normal component. It is on the Component Palette, on the "Indy Misc" tab. It has a standard VCL constructor, so you can optionally instantiate it in code instead of at design-time. You don't have to do anything to "initialize" it before adding your custom cookies to it. Gambit
Technical Details
Message-ID:
<4564a76e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45642bbb$1@newsgroups.borland.com> <45648f67@newsgroups.borland.com> <45649763@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,68afa507f0d6b215 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <45642bbb$1@newsgroups.borland.com> <45648f67@newsgroups.borland.com> <45649763@newsgroups.borland.com> Subject: Re: TIdHTTP and Cookie (newby question) Date: Wed, 22 Nov 2006 11:36:49 -0800 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <4564a76e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164224366 69.169.4.232 (22 Nov 2006 11:39:26 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail