>> Note that you can derive your own HTTP component from ICS component and
>> add
>> the storage or manager you like. In my opinion, it is better to write a
>> separate class for cookie management and link that class to your HTTP
>> component. A cookie manager component would be a nice addon to ICS :-)

> How would you add to the current httpcli (v6) component a cookie-manager 
> in
> a non code breaking manner as the current cookie is defined as a string?

Write a TCookieManager component.
Create a new property CookieManager in the HTTP component.
At design time, link the cookie manager component to the http component.

In the http component, when a cookie is received and the cookie manage is 
assigned, the HTP component call the appropriate methods in the cookie 
manager. The same when a request is sent: if cookie manager is assigned, the 
http component request the cookie manager to get the cookie list to add to 
the request.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html

To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to