Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : IdCookieManager not saving cookie
| Subject: | IdCookieManager not saving cookie |
| Posted by: | "mo" (dont.spam@me.com) |
| Date: | 18 Dec 2007 12:11:10 |
Im trying to access a site that requires a login.
As my application will run in the background without userinput I
have added a TIdCookieManager and assigned it to my TIdHTTP
component.
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. I noticed that no cookies were created when
using the cookiemanager so I was wondering what could be the
problem.
My code is very simple
IdHTTP1.AllowCookies:=true;
IdHTTP1.HandleRedirects:=true;
memo1.text := IdHTTP1.Get(edit1.Text); {edit1 contains the
url )
The TiDHTTP has been set to allow cookies and the useragent has
been set to 'MSIE 6.0'
I even tried setting vAllow to true (NewCookie event of the
cookiemanager)
Any tips would be appreciated.