Internet Direct (Indy) Version 9.0.1 Beta
|
function GenerateCookieList(URL: TIdURI; SecureConnection: Boolean): String;
SecureConnection indicates whether Cookies must contain a Secure attribute value before they are included in the generated Cookie content for the HTTP client.
Cookies in the CookieCollection will not be used in the generated content when Domain, Path, or Secure Cookie attributes do not match the required values. Cookies can also be ignored when they have Expired.
GenerateCookieList creates and populates a TIdCookieList with COokie class instances matching the required values, and fills the return value with the CookieName and Value for corresponding Cookies in the list. GenerateCookieList frees the TIdCookieList prior to exiting from the method.
GenerateCookieList is called when an HTTP request is prepared and executed using the TIdHTTP Post or Put methods.