public static CookieCollection GetAllCookiesFromHeader(IEnumerable<string> headers, string strHost)
{
CookieCollection cc = new CookieCollection();
if (headers!=null && headers.Count()>0)
{
ArrayList al = ConvertCookieHeaderToArrayList(headers);
cc = ConvertCookieArraysToCookieCollection(al, strHost);
}
return cc;
}