Re: Set cookie in latest version

Giganews Newsgroups
Subject: Re: Set cookie in latest version
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Fri, 1 Apr 2011

"Alexandre" <alexandrepires20…@yahoo.com.br> wrote in message
news:8534EEF647D7E340alexandrepires20…@yahoo.com.br...

> I tried this but it did not work in lastest version

The best way is to use the TIdCookieManager.AddServerCookie() method, eg:

URI := TIdURI.Create('http://mydomain.com/');
try
  IdCookieManager.AddServerCookie('mycookie=value', URI);
finally
  URI.Free;
end;

--
Remy Lebeau (TeamB)

Replies

In response to

Set cookie in latest version posted by Alexandre on Thu, 31 Mar 2011