From: "Francois PIETTE"
>
>> For all readers, if you can think of any cookiemanager functions etc, 
>> just
>> list them and I'll see what I can do.
>

Your funtions are based on the assumption that there is a manager per 
httpcli, but maybe beter to have a manager that can handle multiple httpcli?

> procedure AddCookie(const Cookie : String);

procedure AddCookie(Host : String; Data : String);

Add cookie for a host to the collection. Maybe terurn value must be set to 
see if the cookie is accepted by the manager?

> function ScanCookies(const URL : String) : String; // Return a list of
> header lines (CR/LF delimited) with all stored cookie valid for the given
> URL.

procedure ScanCookies(Host:String;Path:String): String;

Returns a string with all cookies for a specifiek path for a specifiek host, 
maybe use ; as delimeter as that would allow to connect it to the current 
cookie in thttpcli. If Path is not given default path =/ will be used.

> procedure Clear;  // Delete all

procedure ClearAll

Clears all cookies for all hosts

 procedure Clear(Host: String; Path:String)

Clear cookies set for a host and specifiek path. If path not set default 
path =/ will be used.

function GetCookiePath(Host : String) : TStringList;

will return all available paths for which a cookie has been saved for named 
host.

> procedure SaveToStream(Stream : TSream);

Maybe also SaveHostCookieToStream(Host : String : Stream : TStream)

saves all cookies for all paths for 1 specifiek host

> procedure LoadFromStream(Stream : TStream);

Maybe also LoadHostCookieFromStrea,(Host : String : Stream : TStream)

loads all cookies for all paths for 1 speciek host

> procedure Purge; // Purge all expired cookies

? what should this one do?

>
> --
> Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
> --
> [EMAIL PROTECTED]
> http://www.overbyte.be
>
>
>
>
> -- 
> 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
> 


-- 
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