Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: IdCookieManager not saving cookie

www.cryer.info
Managed Newsgroup Archive

Re: IdCookieManager not saving cookie

Subject:Re: IdCookieManager not saving cookie
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 18 Dec 2007 12:39:09

"mo" <dont.spam@me.com> wrote in message
news:4768295e$1@newsgroups.borland.com...

> I have added a TIdCookieManager and assigned it to my TIdHTTP
> component.

Which version of Indy are you using?

TIdHTTP uses its own built-in cookie manager when you don't assign your own.

> I'm using the Get method with the proper query items but i
> never get past the login. If i paste the same url in my browser
> it works just fine.

Then the cookie manager probably can't handle the cookie(s) that are being
sent to it.

> I noticed that no cookies were created when using the cookiemanager

The cookie manager stores every valid cookie it is given.  Depending on the
contents of a cookie, it may or may not send them back to the server
correctly on subsequent requests, but valid cookies should always be getting
stored in the manager, and you will get an OnNewCookie event for each one.
If you are not getting that event, then the site is either not sending any
cookies at all, or is sending invalid cookies.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive